Skip to content

Commit

Permalink
stretch 3/5p: anchor_end() shortens otherwise
Browse files Browse the repository at this point in the history
plyranges=1.0.3
reported at tidyomics/plyranges#49
  • Loading branch information
mschubert committed Aug 7, 2018
1 parent d1e2ba6 commit 2a1394e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cis_analysis/plot_ins.r
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ grtrack = GeneRegionTrack(txdb, name=args$gene)
gtrack = GenomeAxisTrack(name="GRCm38.92")
genes = seq$coords$gene(dset="mmusculus_gene_ensembl", granges=TRUE) # get this out of txdb obj?
region = genes[genes$external_gene_name == args$gene] %>%
anchor_start() %>% stretch(as.integer(args$flank)) %>%
anchor_end() %>% stretch(as.integer(args$flank))
anchor_5p() %>% stretch(as.integer(args$flank)) %>%
anchor_3p() %>% stretch(as.integer(args$flank))
aw = width(region) / 20

dna_ins = io$load(args$dna_ins) %>%
Expand Down

0 comments on commit 2a1394e

Please sign in to comment.