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

updated rule filter (in merge_samples) #64

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

gmafrafortuna
Copy link
Collaborator

so it starts from the file with 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")
Copy link
Collaborator

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?

Copy link
Contributor

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).

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

Successfully merging this pull request may close these issues.

3 participants