Skip to content

Commit

Permalink
Update fetch_ucsc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xingma committed Mar 29, 2019
1 parent 7e96b23 commit 4720ebc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions circ2/fetch_ucsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
import gzip
import tarfile
import pysam
try:
from string import maketrans
except ImportError:
maketrans = str.maketrans


def fetch_file(options):
Expand All @@ -25,7 +21,7 @@ def fetch_file(options):
path = 'http://hgdownload.soe.ucsc.edu/goldenPath/%s/' % options[1]
else:
sys.exit('Only support human or mouse!')
s = maketrans(' ', '_')
s = {32:95}
if options[2] == 'ref': # RefSeq gene annotations
download_file(path + 'database/refFlat.txt.gz', 'refFlat.txt.gz')
with open(options[3], 'wb') as outf:
Expand Down

0 comments on commit 4720ebc

Please sign in to comment.