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

vcf_operations.cpp:525 Sample names are not unique #118

Open
xuefenfei712 opened this issue Nov 9, 2022 · 1 comment
Open

vcf_operations.cpp:525 Sample names are not unique #118

xuefenfei712 opened this issue Nov 9, 2022 · 1 comment

Comments

@xuefenfei712
Copy link

Dear Hannes

I am using Graphtyper to call SNPs, it is quite convinent, while I got the error below

vcf_operations.cpp:525 Sample names are not unique. The output VCF file will contain duplicated sample names (which is against the VCF specs).

I double checked mu header of bamfiles, they are unique, could you tell me how to deal with it? because later I cannot merge them together because of this issue.

Thankyou

xue

@hannespetur
Copy link
Member

Hi. Could you have a closer look at the sample names in the VCF header and check if the names have been parsed incorrectly somehow compared to the BAMs?

Alternatively, you could take as input a list of paths that are symlinks similar to /....../<SAMPLE_NAME>.bam and use the graphtyper genotype option --get_sample_names_from_filename to ignore the BAM headers and use the filenames instead.

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

No branches or pull requests

2 participants