retrieving sequences of a upstream and downstream of a coordinate for hg19
1
0
Entering edit mode
8.2 years ago
kanwarjag ★ 1.2k

I have location of peak summit from my chipseq data and want to extract sequences 500 bp upstream and downstream of this coordinate from hg19. What should be easieast approach. Apology for a naive question, but I could not recollect or find on net how I used to do this.

Thanks

ChIP-Seq • 2.0k views
ADD COMMENT
0
Entering edit mode
8.2 years ago
ATpoint 89k
awk 'OFS="\t" {print $1, $2-500, $3+500}' summits.bed | samtools faidx hg19.fa /dev/stdin > sequences.fa
ADD COMMENT

Login before adding your answer.

Traffic: 4444 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6