-
Notifications
You must be signed in to change notification settings - Fork 31
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
Adding genotype information #117
Comments
I ended up writing a simple bash script to add 'fake' genotype information to a VCF file, e.g. specifying that my sample is from a virus --> GT=1. This is good enough for my purposes. I can provide the script if it will be of use for anyone else, in the absence of a more robust alternative. |
Hi, |
Hi @arunvv90, I run |
Thanks a lot man. I was keep on trying different things. Really appreciate your quick response. Does this script add the sample name field in the header, which is required for merging the multiple samples ? |
Yep, the sample name is added to the header. Previously the sample name was only guessed from the infile name, but I just added another flag to allow you to explicitly specify the name. New script attached. The raw vcf: Modified vcf after running script: |
Wow! Lightening speed!! I just tested the script and it work like charm! I was about to use bcftools reheader to change the file name. Let me test the new script for custom sample name |
I just tested the sample name feature also. It worked perfectly. Simple & easy solution!!! Thank you very much |
Hi,
I'd like to use
lofreq
for my pipeline, but I require genotype information for downstream commands. I tried usinglofreq2_add_sample.py
like so:However, I get the following error:
If I change the read mode for files in the
add_plp_to_vcf
function from 'rb' to 'r' to try and get around this error, I get:Do you have a workaround? My python version is 3.8.6. Thanks.
The text was updated successfully, but these errors were encountered: