Skip to content

chklopp/Separate_haplotypes_with_toulbar2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Separate haplotypes with toulbar2

Given a genome assembly in fasta format and a set of proteins from the same or a closely related species also in fasta format and the awaited ploitdy, our python script will align the proteins onto the genome, produce a protein to contig link file, transform the link file in a contraint file, resolve the contraints with toolbar2 and extract the haplotyped contigs lists in separate haplotype fasta files.

Dependencies

Running the script

python shtb2.py --proteins proteins.fasta --assembly assembly.fasta --ploidy 4
    

Script help

python shtb2.py --help
usage: shtb2.py [-h] --assembly ASSEMBLY --proteins PROTEINS --ploidy PLOIDY [--output OUTPUT] [--mpthreads MPTHREADS] [--optime OPTIME]

split haplotypes wiht toulbar2.

options:
  -h, --help            show this help message and exit
  --assembly ASSEMBLY   input assembly fasta file
  --proteins PROTEINS   input proteins fasta file
  --ploidy PLOIDY       input genome ploïdy
  --output OUTPUT       haplotype prefix
  --mpthreads MPTHREADS threads to run miniprot
  --optime OPTIME       optimisation time in seconds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages