![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bfc/vfc c/c++ api | dehvidc1 | Bioinformatics | 2 | 12-19-2012 03:57 AM |
Are there any good ways to use SAMtools java API to convert .bam file into .txt file? | alextree | Bioinformatics | 8 | 01-24-2012 10:20 AM |
Samtools C API + SOLID reads | Koskos | Bioinformatics | 0 | 09-05-2011 04:55 AM |
pathways API KEGG | svl | Bioinformatics | 5 | 02-10-2011 02:37 PM |
samtools c api | blu78 | Bioinformatics | 6 | 09-07-2010 07:43 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: Düsseldorf Join Date: Nov 2010
Posts: 20
|
![]()
I would like to read and write bam files within c++. For that I downloaded the source code files and tried to get the SAMtools Example c program running.
Upon compiling I get an Error message ../src/samtools/bam_reheader.c: In function ‘bam_reheader’: ../src/samtools/bam_reheader.c:28: error: ‘BGZF’ has no member named ‘x’ In "bam_reheader" I found: Code:
// line 10: BGZF *fp; #ifdef _USE_KNETFILE while ((len = knet_read(in->x.fpr, buf, BUF_SIZE)) > 0) #else while (!feof(in->file) && (len = fread(buf, 1, BUF_SIZE, in->file)) > 0) #endif fwrite(buf, 1, len, fp->x.fpw); // this is line 28 Upon looking up the definition of BGZF which is located in "bgzf.h", I found the following: Code:
#ifdef _USE_KNETFILE union { knetFile *fpr; FILE *fpw; } x; Did anyone else encounter this problem or does anyone know a solution? Thanks very much. Wolfgang |
![]() |
![]() |
![]() |
#2 |
Nils Homer
Location: Boston, MA, USA Join Date: Nov 2008
Posts: 1,285
|
![]()
Try posting to the samtools help list: samtools-help@lists.sourceforge.net
|
![]() |
![]() |
![]() |
#3 | |
Member
Location: Düsseldorf Join Date: Nov 2010
Posts: 20
|
![]() Quote:
Sent a copy of the post. Thank you Wolfgang |
|
![]() |
![]() |
![]() |
Tags |
api, c++, samtools |
Thread Tools | |
|
|