Draft
Conversation
Adding mycosnp_results_files.py to prepare mycosnp qc results for labware8 import
jwarnn
approved these changes
Jul 27, 2023
Contributor
jwarnn
left a comment
There was a problem hiding this comment.
I was able to get this script to run and produce an output that looks like what is intended. Has there been any testing as to if the files are picked up by LabWare8?
Contributor
|
One other thing. The results files have DB ids for SRR and Genebank but those won't be available from the mycosnp results so will there be a companion script or will those have to be added manually? |
Member
|
The SRA accessions are a long conversation with an unknown ending. 😅 |
erinyoung
reviewed
Jul 27, 2023
mycosnp_results_files.py
Outdated
|
|
||
| # Writing the files for each sample separately | ||
| arln_filename = 'labware8/arln_' + sample + '_results.txt' | ||
| sample_df.to_csv(arln_filename, columns=arln_labware_cols, index=False, sep='\t') |
Member
There was a problem hiding this comment.
The file needs to be a csv file, so please delete the '\t'
Contributor
Author
There was a problem hiding this comment.
changed the sep='\t' to sep=',' and changed 'results.txt' to 'results.csv'
changed from tab separated to csv
Member
|
I have converted this to a draft for now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding mycosnp_results_files.py to prepare mycosnp qc results for labware8 import. Some of the changes from Erin's granduer_results_files.py script include functions to gather samplesheet data from either NextSeq 2k or MiSeq due to either being used to sequence C. auris, using 'glob' dependency to find 'qc_report.txt' at any level, parsing of qc_report.txt with qc metrics for passing samples, and only the passing samples with a 'Y' being moved into the 'labware8' directory to use as import.