Skip to content

Commit

Permalink
fixed bug where the wrong base was assumed for bam files
Browse files Browse the repository at this point in the history
  • Loading branch information
RickGelhausen committed Jan 20, 2020
1 parent 36e89e9 commit 0eb7614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Ribo_seq_occupancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def process_ribo(inputFile,occupancy,min_read_len,max_read_len,outputFileS,outpu
for read in inFile.fetch():
bit_flag = int(read.flag) # FLAG;
chromosome = read.reference_name # chromosome
genomic_position = read.pos # left-most position
genomic_position = read.pos+1 # left-most position
cigar = read.cigarstring # CIGAR string [only M and S observed in bacteria]

length = len(read.query_sequence) # footprint length
Expand Down

0 comments on commit 0eb7614

Please sign in to comment.