This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Cannot open BAM files with the SeqAn library

For some reason, I cannot open BAM files using the SeqAn library. While I try to open by executing the following code:

CharString bamFileName = getAbsolutePath("demos/tutorial/sam_and_bam_io/example.bam");

I get the following error:

ERROR: Could not open /home/omair/Programs/seqan/demos/tutorial/sam_and_bam_io/example.bam
cpp seqan bam sequencing

what is the output of the following command

file /home/omair/Programs/seqan/demos/tutorial/sam_and_bam_io/example.bam

and

find  /home/omair/ -type f -name "example.bam"

?

The output of

file /home/omair/Programs/seqan/demos/tutorial/sam_and_bam_io/example.bam

is

/home/omair/Programs/seqan/demos/tutorial/sam_and_bam_io/example.bam: gzip compressed data, extra field

and the output of

find /home/omair/ -type f -name "example.bam"

is

/home/omair/Programs/seqan/apps/ngs_roi/example/example.bam /home/omair/Programs/seqan/demos/tutorial/file_io_overview/example.bam /home/omair/Programs/seqan/demos/tutorial/sam_and_bam_io/example.bam

0 answers

No answers yet.

Log in to answer this question.