Unknown file type error when running bcftools command
1
0
Entering edit mode
2.3 years ago
X • 0

Hi all,

I've been trying to run this command:

bcftools view --threads 40 --samples-file /home/j/jle/jasminl/scratch/analysis/ID.txt -Oz -o /home/j/jle/jasminl/scratch/analysis/JC.vcf.gz

Where ID.txt is a file containing the ID I want to use to extract samples from the JC.vcf.gz file. However, I have been running into this error:

Failed to open -: unknown file type

Is this a common problem? What might be causing it?

Thank you.

bcftools bash • 2.9k views
ADD COMMENT
0
Entering edit mode

what's the version of bcftools ? otherwise I suspect there is a invisible character somewhere in your command. You shoud re-write it from scractch .

ADD REPLY
0
Entering edit mode

I tried rewriting it from scratch, but the same is occurring. The modules I have currently loaded onto my shell script is:

module load gcc/8.3.0 module load bcftools/1.8 module load samtools/1.13

Please let me know your thoughts, thank you.

ADD REPLY
0
Entering edit mode

run bcftools view only, look at the available options and look if this old version of bcftools contains the options you wanted.

ADD REPLY
3
Entering edit mode
2.3 years ago
4galaxy77 2.9k

You haven't specified an actual input file because it's treating /home/j/jle/jasminl/scratch/analysis/JC.vcf.gz as the output file as it follows the -o flag.

It should be something like this:

bcftools view \
    --threads 40 \
    --samples-file /home/j/jle/jasminl/scratch/analysis/ID.txt \
    -O z \
    -o /home/j/jle/jasminl/scratch/analysis/JC.output.vcf.gz \
    /home/j/jle/jasminl/scratch/analysis/JC.vcf.gz
ADD COMMENT
0
Entering edit mode

Thank you!

ADD REPLY

Login before adding your answer.

Traffic: 1575 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6