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

Genotype request : filter out duplicate sample names entered by the user #409

Open
Don-Isdale opened this issue Sep 4, 2024 · 0 comments
Assignees

Comments

@Don-Isdale
Copy link
Collaborator

Introduction

When requesting genotype values, the user is able to enter a list of sample names, e.g. by copy / paste into a text area.
The request is implemented by bcftools, which does not accept duplicate sample names.

The solution is to filter out duplicate sample names entered by the user before sending the request to bcftools.


Details

There's a message in the server log indicating this has occurred :

 childProcess vcfGenotypeLookup.bash  errors : [E::bcf_hdr_subset] Duplicate sample name "AGG..."

At the same time or closely related there was also a segmentation fault in bcftools :

+ bcftools query AGG-.../Chr5A.MAF.vcf.gz -r Chr5A:70... -s AGG...71 -H -f '%ID	%POS	%REF	%ALT	%INFO[	%GT]
'

/app/lb3app/scripts/vcfGenotypeLookup.bash: line 335: 250988 Segmentation fault      (core dumped) "$bcftools" ...
@Don-Isdale Don-Isdale self-assigned this Sep 4, 2024
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

1 participant