-
Notifications
You must be signed in to change notification settings - Fork 9
/
refactor.sh
43 lines (36 loc) · 2.48 KB
/
refactor.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# perl -p -i -e "s/from six import StringIO/import io.StringIO as StringIO/" CGATPipelines/*.py
# perl -p -i -e "s/import io.StringIO as StringIO/from io import StringIO/" CGATPipelines/*.py
# perl -p -i -e "s/cachedmethod/cached_method/" CGATPipelines/*.py
# perl -p -i -e "s/openFile/open_file/" CGATPipelines/*.py
# perl -p -i -e "s/prettyPercent/pretty_percent/" CGATPipelines/*.py
# perl -p -i -e "s/prettyPercent/pretty_percent/" CGATPipelines/*.py
# perl -p -i -e "s/getOutputFile/get_output_file/" CGATPipelines/*.py
# perl -p -i -e "s/readMap/read_map/" CGATPipelines/*.py
# perl -p -i -e "s/writeMatrix/write_matrix/" CGATPipelines/*.py
# perl -p -i -e "s/openOutputFile/open_output_file/" CGATPipelines/*.py
# perl -p -i -e "s/readList/read_list/" CGATPipelines/*.py
# perl -p -i -e "s/openFile/open_file/" CGATPipelines/*.py
# perl -p -i -e "s/openFile/open_file/" CGATPipelines/*.py
# perl -p -i -e "s/getParameters/get_parameters/" CGATPipelines/*.py
# perl -p -i -e "s/asList/as_list/" CGATPipelines/*.py
# perl -p -i -e "s/P.run\(\)/P.run(statement)/" CGATPipelines/*.py
# perl -p -i -e "s/peekParameters/peek_parameters/" CGATPipelines/*.py
# perl -p -i -e "s/from future.moves.urllib.request import urlopen/from urllib.request import urlopen/" CGATPipelines/*.py
# perl -p -i -e "s/pipeline_genesets.py/genesets/" CGATPipelines/*.py
# perl -p -i -e "s/getTempFile/get_temp_file/" CGATPipelines/*.py
# perl -p -i -e "s/getTempDir/get_temp_dir/" CGATPipelines/*.py
# perl -p -i -e "s/import CGAT.BamTools as BamTools/import CGAT.BamTools.bamtools as BamTools/" CGATPipelines/*.py
# perl -p -i -e "s/getNumLines/get_num_lines/" CGATPipelines/*.py
# perl -p -i -e "s/isEmpty/is_empty/" CGATPipelines/*.py
# perl -p -i -e "s/P.touch/IOTools.touch_file/" CGATPipelines/*.py
# perl -p -i -e "s/substituteParameters/substitute_paramaters/" CGATPipelines/*.py
# perl -p -i -e "s/isComplete/is_complete/" CGATPipelines/*.py
# perl -p -i -e "s/zapFile/zap_file/" CGATPipelines/*.py
# perl -p -i -e "s/isPaired/is_paired/" CGATPipelines/*.py
# perl -p -i -e "s/mergeAndLoad/merge_and_load/" CGATPipelines/*.py
# perl -p -i -e "s/concatenateAndLoad/concatenate_and_load/" CGATPipelines/*.py
# perl -p -i -e "s/toTable/to_table/" CGATPipelines/*.py
# perl -p -i -e "s/create_view/createView/" CGATPipelines/*.py
# perl -p -i -e "s/getDatabaseName/get_database_name/" CGATPipelines/*.py
# perl -p -i -e "s/importFromIterator/load_from_iterator/" CGATPipelines/*.py
# perl -p -i -e "s/P.run_report/run_report/" CGATPipelines/*.py