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

Plus and minus strands inverted #1

Closed
will-rowe opened this issue Sep 21, 2016 · 2 comments
Closed

Plus and minus strands inverted #1

will-rowe opened this issue Sep 21, 2016 · 2 comments

Comments

@will-rowe
Copy link

Hi there,

Thank you for making a great script available. I have been using it on a recent batch of sequencing data but have noticed that the plus and minus stranded bigwigs are the opposite to what we were expecting.

After checking through the script, it looks as though the F and f flags are the wrong way around at lines 20 and 22 in the bam_divide function, what do you think? I.E for forward strands, samtools command should be 'samtools view -F 20' and for reverse, 'samtools view -f 16'

@kepbod
Copy link
Contributor

kepbod commented Sep 21, 2016

In general, we used Illumina Truseq Stranded Kit (dUPT method) to carry out the stranded sequencing, and the first strand cDNAs (reverse complementary to sample RNAs) were actually sequenced. So in the final bam file, if it is labeled with 16, it stands for plus strand in our case. If your sequencing protocol is different with ours, please feel free to modify it. 😄

@will-rowe
Copy link
Author

Ahh that makes sense, I hadn't considered dUPT libraries. Thank you!

@kepbod kepbod closed this as completed Oct 11, 2016
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