Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
loosolab
/
master_project_JLU2018
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
7
Pull requests
1
Actions
Projects
0
Wiki
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security
Insights
Files
53b0857
bin
1.1_footprint_extraction
1.2_filter_motifs
2.1_clustering
2.2_motif_estimation
3.1_create_gtf
Modules
Ensembl
FTPHandling
__pycache__
ActivityCategorizer.py
ActivityTable.py
ActivityTableGenerator.py
Ensembl.py
GTFGen.py
__init__.py
checksums.py
__pycache__
ucsc
CrossMap.py
CrossMapper.py
SaveResults.py
Uniquifier.py
__init__.py
config
data
RegGTFExtractor.py
config
README.md
masterenv.yml
nextflow.config
pipeline.nf
Breadcrumbs
master_project_JLU2018
/
bin
/
3.1_create_gtf
/
Modules
/
Ensembl
/
checksums.py
Blame
Blame
Latest commit
History
History
23 lines (18 loc) · 565 Bytes
Breadcrumbs
master_project_JLU2018
/
bin
/
3.1_create_gtf
/
Modules
/
Ensembl
/
checksums.py
Top
File metadata and controls
Code
Blame
23 lines (18 loc) · 565 Bytes
Raw
import hashlib # Python implementation of linux sum (BSD 16-bit Checksum) commandline tool. """ Unused script with checksum implementations in Python """ def bsdchecksum(infile): with open(infile, 'rb') as f: file_bytes = f.read() c_sum = 0 for char in file_bytes: c_sum = (c_sum >> 1) + ((c_sum & 1) << 15) c_sum += char c_sum &= 0xffff return c_sum def md5_checksum(infile): with open(infile, 'rb') as f: file_bytes = f.read() return hashlib.md5(file_bytes).hexdigest()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
You can’t perform that action at this time.