Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MycoSNP results to Labware 8 #33

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

tives82
Copy link
Contributor

@tives82 tives82 commented Jul 27, 2023

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.

Adding mycosnp_results_files.py to prepare mycosnp qc results for labware8 import
Copy link
Contributor

@jwarnn jwarnn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@jwarnn
Copy link
Contributor

jwarnn commented Jul 27, 2023

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?

@erinyoung
Copy link
Member

The SRA accessions are a long conversation with an unknown ending. 😅


# 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')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file needs to be a csv file, so please delete the '\t'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed the sep='\t' to sep=',' and changed 'results.txt' to 'results.csv'

@erinyoung erinyoung changed the title Add files via upload MycoSNP results to Labware 8 Jul 27, 2023
changed from tab separated to csv
@erinyoung erinyoung marked this pull request as draft May 1, 2024 16:02
@erinyoung
Copy link
Member

I have converted this to a draft for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants