convert gz to bam
I have a problem converting a gz file into a bam file. How can I do this using the samtools library. Thank you
genome
• 1,829 views
•
link
written
by
thioubmouhamadou
0
0 answers
No answers yet.
Log in to answer this question.
More posts like this
-
Splitting human bam file into fixed regions
written by irfanwustl 9I have a bam file for the human whole genome. I want to split the bam file into multiple bam files, each having a fixed …
-
SAM file quality check without converting into BAM
written by vaish01kv 0How to check if the sequences have aligned properly using SAM file before converting it into BAM.? Are there any tools which can read/process SAM …
-
Split BAM file from more sample
written by martyferr90 3Hi all! I have a little problem: I have 1 bam file (44gb ca) ant it contain the reads from 11 different sample. I have …
-
BAM to CRAM to BAM
written by ElUretsky 3I would like to know, can someone post a working example of converting a BAM file to CRAM and BAM again? I tried samtools, cramtools …
-
Multiple sam to bam followed by raw read count
written by Bioinfonext 48I have multiple sam file like this: sam file location: /data/SNU_work/Analysis/mapped/mapped samtool location: /home/yog/software/samtools-1.3.1/samtools 218_9W_Pa2.sam 218_9W_Pa1.sam 216_7W_Co1.sam 216_7W_Ca2.sam 216_7W_Ca1.sam I converting them one by one …
-
Merge fastq files from different lanes
written by shmaisrael 0I got a fastq files from core and they loaded same library on two different lanes. I read the posts of people that deal with …
-
bed to bigBed conversion
written by tanni93 5Hi all, I am having trouble converting a bed file into a bigBed file --> how many I do this without much programming? Thank you, …
-
FASTQ to BAM
written by kumbarov 1I am trying to convert some SRA files to BAM format but I have a problem. How do I convert a FASTQ file to BAM …
-
Filtering nth length from mapped SAM/BAM file.
written by unique379 12Hi guys, I am trying to filter reads less than 18nt from my mapped BAM file and then want to get back into SAM format …
-
Getting coverage per barcode from bamfile with barcoded reads
written by sci 0Hi, I'd like to do the following with a huge bam file, reads are randomly barcoded: 1. Take all reads associated with barcode (DONE) 2. …
Brief Reminder On How To Ask A Good Question
Please spend some time reading/searching this forum. If you still need assistance then improve your question by putting some effort into it and showing us what you have tried to achieve your goal.
gzis a common file extension used for files that are either gzip-compressed or bgzip-compressed. As such, it denotes a file format.bamis a file format (and also a file extension, but a file format first) that stores reference-aligned or unaligned reads. You can get from one level of information content to another, but you cannot "convert" between two different paradigms without an understanding of the fundamentals.I have several gz files. And I want to compress them in bam with C code.
can you post one entire file name here? what comes before the
.gz?Please use
ADD COMMENT/ADD REPLYwhen responding to existing posts to keep threads logically organized.SUBMIT ANSWERis for new answers to original question.Is this a homework/assignment question? If it is you should clarify that. Are these sequence data files or something else?
Please check what @RamRS posted above for reference.
This is like saying "I have several edible items. And I want to compress them to sandwich using metal".
Not all edible items can be made into a sandwich and you don't need to start from metal to get to a tool that can make a sandwich from specific, compatible edible items.
Why do you want to use C?
Friederike . For example chr1.gz i use the sametools library
Please stop adding answers unless you're answering the top level question.
What does
chr1.gzcontain? Please edit your question and add a significant amount of relevant detail so your question can be reopened.Hello thioubmouhamadou!
We believe that this post does not fit the main topic of this site.
OP keeps adding answers. Also, question too vague
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!