-
Notifications
You must be signed in to change notification settings - Fork 7
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
updated rule filter (in merge_samples) #64
base: main
Are you sure you want to change the base?
Conversation
…h the most samples
resources: cpus=1, mem_mb=64000, time_min=60 | ||
run: | ||
import os | ||
|
||
for file in input: | ||
shell("wc -l {file} >> files_len.txt") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sorts by the number of lines - which is SNPs, not samples. Is this ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is about the number of individuals, correct @gmafrafortuna ? We could probably extract the number of individuals using vcf/bcftools. I also found this awk one-liner: awk '{if ($1 == "#CHROM"){print NF-9; exit}}' input_vcf_file.vcf
This looks at the #CHROM line in the vcf file which is the line of the column header (which includes individual names).
so it starts from the file with the most samples