Skip to content

cobaltblu27/hairpin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Hairpin structure finder implemented with LCS

usage: lcs.py [-h] [-f FILEPATH] [-e MAXERR] [-l MINLEN] [-m MINMATCH]
[-s SAVE]

optional arguments:
-h, --help show this help message and exit
-f FILEPATH path of the file, gets seq_short on default
-e MAXERR maximum changes allowed in lcs
-l MINLEN minimum length of lcs(50~100 recommended)
-m MINMATCH minimum length of consequtive
-s SAVE store result in filepath

output example:
>./lcs -f input/seq.txt
gene length: 100586
LCS 1 : TAGATGATGATGTTATACGCGTTCTTCTGGCCGCTATTGGTGGAGGATGTAGTACTCCTCTTTTTTTAATAGTGACATAGGTCATCCTAGAGGCGGATTCGGACTCGAAGTTTGTGTTTGACGGGGGAATGTTGAGTGACCAGTCC
hairpin: CCTGGAACATGAATCACAAATGGAGAGCTAACTAATCTATATCACTTTATCTTGCTAATGCAAAGGCCAAATGCATAAGTAGTTCAAACCCGGAAAATAATCTACTTTTGG
LCS 2 : TAGATGATGATGTTATACGCGTTCTTCTGGCCGCTATTGGTGGAGGATGGGTATAGTACTCCTCTTTAATAGTGACATATTTTGGTCATCCTAGAGGCGGATTCGGACTCGAAGTTTGGACGGGGGAATGTTGAGTGACCTGTTTAGTCC
change : TAGATGATGATGTTATACGCGTTCTTCTGGCCGCTATTGGTGGAGGATGGGTATAGTACTCCTCTTTTTTTAATAGTGACATATTTTGGTCATCCTAGAGGCGGATTCGGACTCGAAGTTTGTGTTTGGACGGGGGAATGTTGAGTGACCTGTTTAGTCCC

LCS 1 : GCGCGGCGGTGCACAAGCAATTGACAACTAACCACCGTGTATTCGTTATGGCATCAGGCAGTTTAAGTCGAGACAATAGGGCTCGCAATACACAGTTTACCGCATCTTGCCCTAACTGACAAACTGTGATCGACCACTAGCCATGCCATTGCCTCTTAGACACCCGTG
hairpin: TCGATACTGAACGAATCGATGCACACTCCCTTCCTTGAAAACGCACAATCATACAAGTGGGCACATGATGG
LCS 2 : GCGCGGCGGTGCACAAGCAATTGACAACTAACCACCGTGTATTCGTTATGGCATCAGTTTAAGTCGAGACAATAGGGCTCTACACAGTTTGCAAACCGCATCTTGCCCTAACTGACAAACTGTGATCGACCACTAGCCATGCCATTGCCTCTTAGACACCCTG
change : GCGCGGCGGTGCACAAGCAATTGACAACTAACCACCGTGTATTCGTTATGGCATCAGGCAGTTTAAGTCGAGACAATAGGGCTCGCACATACACAGTTTGCAAACCGCATCTTGCCCTAACTGACAAACTGTGATCGACCACTAGCCATGCCATTGCCTCTTAGACACCCGTGT

LCS 1 : ACCCGGAAATGGCTGTATTTATTGAGGTATTATACTGTGATATGTTAAAAAAAAAAGGGGAGTAGGTGGATGATTTTCAAGAAGCTATGCCTAAGCGCGTGAGTACCATCGGCCAGACGCAGTCTTGGCCCAGTACCGACGAATCTACTGCAATCGCATGACAGGGCTAC
hairpin: CATTAGAAACTACATATGAGGAGAATACCAGACGTTATTTTTTTGAACGACCACATACATAGCATACACATAATAAATTTAAAA
LCS 2 : ACCCGGAAATGGCTGTATTTATTGAGGTATTATACAGTTGTGATATGTTAAAAAAAAAAGGGGAGTAGGTGGATGATTTTCAAGAAGCTATGCCTAAGCGCGTGAGTACCATCGGCCAGACGCAGTCTTGGCCCAGTACCGACGAATCTACTGCCCCAATCGCATGACAGGGCTAC
change : ACCCGGAAATGGCTGTATTTATTGAGGTATTATACAGTTGTGATATGTTAAAAAAAAAAGGGGAGTAGGTGGATGATTTTCAAGAAGCTATGCCTAAGCGCGTGAGTACCATCGGCCAGACGCAGTCTTGGCCCAGTACCGACGAATCTACTGCCCCAATCGCATGACAGGGCTACC

time spent:122.67

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages