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

Running velocyto on bulk RNA #16

Open
lldelisle opened this issue May 1, 2019 · 0 comments
Open

Running velocyto on bulk RNA #16

lldelisle opened this issue May 1, 2019 · 0 comments

Comments

@lldelisle
Copy link

Hello,
I would like to run velocyto on a time series of bulk RNA-seq. Each time point is 24 hours apart. I did the alignment with STAR and as it is a first strand library I reversed the strand of mapping in the bam (see at the end) to be able to use the default logic.
When I looked at the arrows on the PCA, they are not really intuitive. Did I make something wrong? I tried to check with the circadian dataset which is used in the publication but as it is solid data I could not map them...
Many thanks,
Lucille
To reverse the strand I did:
samtools view -h $b | awk -v OFS="\t" '{if($1~/^@/){print}else{n=$2;d=16;q=(n-n%d)/d+(n<0);if(q%2==1){$2-=d}else{$2+=d};print}}' | samtools view -b - > ${b}_reversed.bam

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

1 participant