Skip to content
/ kmer Public

compare kmers of viruses and hosts and calculate distances between them

Notifications You must be signed in to change notification settings

mikrzol/kmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REQUIRED PACKAGES: numpy, pickle, jellyfish

HOW TO USE:

Use control.py as the main file to control the program. Refer to control.py help (control.py -h) to see available options.

Example control.py terminal calls:

Perform all the steps and save the results (virus.txt, host.txt, dirs with pickle files and manhattan distance file) to ./k6 directory:

foo@bar:~$ python3 control.py -k 6 -o ./k6 -b ./host_dir/ -v ./virus_dir -p -d manhattan 

Prepare the files needed for distance calculations:

foo@bar:~$ python3 control.py -k 7 -o ./k7 -b ./host_dir/ -v ./virus_dir -p

Calculate Canberra distance on prepared files (requires the files from the picklify step):

foo@bar:~$ python3 control.py -o ./k7 -d canberra

kmerize.py, distance.py and picklify.py can also be used on their own if needed.

About

compare kmers of viruses and hosts and calculate distances between them

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages