ByrumLab / proteoDA

GNU General Public License v3.0
12 stars 11 forks source link

Automatic creation of targets.csv file #79

Closed tjthurman closed 2 years ago

tjthurman commented 2 years ago

Currently, I'm keeping the behavior of the make_targets() function, which automatically saves a targets.csv file in the current working directory. That file contains the targets, as imported. This is maybe not ideal, from a function design perspective. Its sort of a "side-effect" of the main goal of the make_targets() function (which is to import data, not to write it), and there's no customization.

So, first question: Do we need this targets.csv file at all? If so, should we split off the saving into its own function (e.g., write_target_file()) to remove the side effect, and maybe to allow some more customization of directory and/or filename? Honestly, we don't even really need a custom function: just write.csv() would work.

ByrumLab commented 2 years ago

I didn't know where the targets.csv file was coming from. I don't need it.

clw09 commented 2 years ago

I agree it is definitely not the best design to generate a generic targets.csv as a byproduct. I auto generated the file for testing purposes to make sure things were matching up. :) Until we can sort out streamlining the metadata and data import portion, I think we should probably save a copy of the metadata that is generated since it contains the matched sampleIDs from the sample report for all samples, which are not included in the metadata file that is imported. Maybe a copy for out records and one in the protein_analysis folder for the PI. What do you guys think?

Cheers!

Charity L. Washam, PhD

Instructor of Biochemistry and Molecular Biology

Bioinformatician, UAMS Bioinformatics Core

University of Arkansas for Medical Sciences

4301 W Markham St., Slot 516

Little Rock, Arkansas 72205

Bioinformatician, CTPR Genomics and Bioinformatics Resource

Center for Translational Pediatric Research (CTPR)

(www.archildrens.org/archildrens-COBRE)

Arkansas Children's Research Institute (ACRI)

13 Children’s Way, Slot 512-47

Little Rock, Arkansas 72202-3591


This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom it is addressed. This communication may contain material protected by attorney-client privilege. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error and that any use dissemination, forwarding, printing, or copying of this email and any file attachments is strictly prohibited. If you have received this email in error, please notify me immediately by reply email. You must destroy the original transmission and its contents.


From: ByrumLab @.> Sent: Wednesday, September 14, 2022 11:12:21 AM To: ByrumLab/proteomicsDIA @.> Cc: Subscribed @.***> Subject: Re: [ByrumLab/proteomicsDIA] Automatic creation of targets.csv file (Issue #79)

I didn't know where the targets.csv file was coming from. I don't need it.

— Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_ByrumLab_proteomicsDIA_issues_79-23issuecomment-2D1246997302&d=DwMCaQ&c=27AKQ-AFTMvLXtgZ7shZqsfSXu-Fwzpqk4BoASshREk&r=E045ukXXqOEQLWSfZLobKIfIoOayWqVdSTkJ5ruJ0b8&m=WMsHC4dhSrJAKPCteny3TsmecHn54OEfG2KJoM9y5OOt7rzOJAKrx8NDVThI1KCr&s=cDcSA7q0YDgUhMmy95aFqobr-2-Oz5_BKQKqmLUbOW4&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AK4NJ7AUHTIXUXY3YBZKPOLV6H2OLANCNFSM6AAAAAAQMR6W2M&d=DwMCaQ&c=27AKQ-AFTMvLXtgZ7shZqsfSXu-Fwzpqk4BoASshREk&r=E045ukXXqOEQLWSfZLobKIfIoOayWqVdSTkJ5ruJ0b8&m=WMsHC4dhSrJAKPCteny3TsmecHn54OEfG2KJoM9y5OOt7rzOJAKrx8NDVThI1KCr&s=AAH8NtFopWANog7IaaurTG7lXMfJZ5vuG04HkqV3ADI&e=. You are receiving this because you are subscribed to this thread.Message ID: @.***>


Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

ByrumLab commented 2 years ago

No copy to the PI in protein_analysis. This is internal check only. I wouldn't even write it as a default but can use write_csv if need to check something.

tjthurman commented 2 years ago

OK, I'm removing the target.csv creation and have added in the README example pipeline a note that you can save the .csv if you want.