Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unmapped reads in fastq/fasta format and pair-end data #32

Open
YiweiNiu opened this issue Mar 23, 2018 · 4 comments
Open

unmapped reads in fastq/fasta format and pair-end data #32

YiweiNiu opened this issue Mar 23, 2018 · 4 comments

Comments

@YiweiNiu
Copy link

YiweiNiu commented Mar 23, 2018

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

@smangul1
Copy link
Collaborator

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

@YiweiNiu
Copy link
Author

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 BAM file, ImRep can accept one BAM as input.
  • When you forgot to save unmapped reads, ImRep can accept BAM file with mapped reads and all raw FASTQ files as input.

So the first case doesn't suit me, I have to follow the second.

And my questions are:

  1. Can I run ImRep with the BAM generated by STAR? I did't save unmapped reads in the BAM, but I saved them in separated FATSQ files.
  2. It seems ImRep only accepts one single FATSQ as input, should I cat two FASTQ of pair-end data? Or it just works for single-end data?

Thank you for your help!

Bests,
Yiwei Niu

@smangul1
Copy link
Collaborator

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

@YiweiNiu
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants