-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Copyright (c) 2016 Peng Zhang <[email protected]> | ||
''' | ||
|
||
import fa | ||
from . import fa | ||
|
||
codonSize = 3 | ||
cstart = ['ATG'] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Copyright (c) 2016 Peng Zhang <[email protected]> | ||
''' | ||
import itertools, math | ||
import stat, bam, gtf, exp, orf, tools, io, fa, interval | ||
from . import stat, bam, gtf, exp, orf, tools, io, fa, interval | ||
from multiprocessing import Pool | ||
|
||
codonSize = 3 | ||
|
@@ -163,7 +163,7 @@ def enrich_test_region(self, r1, r2, frame, delta=1e-4, glm = False, show = Fals | |
def multi_orf_test(self, orflist, glm = False): | ||
'''multiple ORF detection for riboseq data, not used in final version | ||
''' | ||
import interval | ||
from . import interval | ||
tid = self.trans.id | ||
blank = [] | ||
for i in range(codonSize): ## Blank regions in different frames | ||
|
@@ -243,7 +243,7 @@ def efpvalues(self, orf, blank, glm = False, show = False): # For multi_orf_test | |
def max_orf(self, orf, blank): | ||
'''for ribonly_orf_finder | ||
''' | ||
import interval | ||
from . import interval | ||
indr = indep_region(orf, blank) | ||
mst, mp = None, 1 | ||
for st in orf.sts : | ||
|
@@ -258,7 +258,7 @@ def ribonly_orf_finder(self, orflist, alt = False, fpth = 0.05): | |
'''find likely TIS by only riboseq data, not used, similar function in pvalStatus() | ||
However, this function seems better | ||
''' | ||
import interval | ||
from . import interval | ||
blank = [] | ||
for i in range(codonSize): ## Blank regions in different frames | ||
b = interval.Interval(start=self.nhead, stop=self.length-self.ntail) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters