imrep
imrep copied to clipboard
unmapped reads in fastq/fasta format and pair-end data
Hello,
I want to try imrep with my RNA-seq data. I've aligned the fastq to genome with STAR, and saved the unmapped reads in fastq format (using --outReadsUnmapped Fastx). As you said, STAR produces partially-mapped reads. In such case, can I feed imrep with the BAM file together with unmapped fastq?
And another question, it seems imrep only accepts single fastq file as input when user want to use --digGold and -a options. Should I just cat two fastq? Or imrep just works for single-end data in such case?
Thanks!
Yiwei Niu
Hi Yiwei,
You are right that STAR produces partially-mapped reads, which are potentially T or B receptor reads. I would recommend saving the bam file with both mapped and unmapped reads. You can consider using our script for STAR with tuned parameters which will produce BAM file with both mapped and unmapped reads : https://github.com/smangul1/recycle.RNA.seq/blob/master/benchmark_RNASeq_aligners/code/run.STAR.tuned.sh
Please let me know if it works. Serghei
Hi, Serghei. Thank you for your quick reply!
Sorry I didn't make myself clear.
I've already done the alignment using STAR and saved unmapped reads to FASTQ files. I don't want to do the alignment job again now, because I have many samples.
To my understanding, ImRep now is designed to handle two cases:
- When you have saved mapped and unmapped reads in one
BAMfile,ImRepcan accept oneBAMas input. - When you forgot to save unmapped reads,
ImRepcan acceptBAMfile with mapped reads and all rawFASTQfiles as input.
So the first case doesn't suit me, I have to follow the second.
And my questions are:
- Can I run
ImRepwith theBAMgenerated bySTAR? I did't save unmapped reads in theBAM, but I saved them in separatedFATSQfiles. - It seems
ImReponly accepts one singleFATSQas input, should I cat twoFASTQof pair-end data? Or it just works for single-end data?
Thank you for your help!
Bests, Yiwei Niu
Hi Yiwei,
Please merge PE into one file. Also to use --digGold, you need to provide original reads, not the unmapped reads. Please let me know how it goes. If this doesn't' work for you, we can implement the option to allow to supply bam with mapped and FASTQ with unmapped (this is on our TODO list anyway). Thanks, Serghei
OK! Thank you for your help!
Also looking forward to the new version of ImRep.
BTW, the link https://github.com/smangul1/Profiling-adaptive-immune-repertoires-across-multiple-humantissues-by-RNA-Sequencing.ImRePconsistentlyoutperformedexistingmethods in your paper is broken.