-
Notifications
You must be signed in to change notification settings - Fork 9
Midlige Tutorial 11 #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ./Muscle -in ./Problem1/sigma.ref -out sigma.align | ||
| ./Hammer/binaries/hmmbuild sigma.hmm sigma.align | ||
|
|
||
| ./Muscle -in ./Problem1/sporecoat.ref -out sporecoat.align | ||
| ./Hammer/binaries/hmmbuild sporecoat.hmm sporecoat.align | ||
|
|
||
| ./Muscle -in ./Problem1/transporter.ref -out transporter.align | ||
| ./Hammer/binaries/hmmbuild transporter.hmm transporter.align | ||
|
|
||
| for file in Problem1/*.fasta | ||
| do | ||
| ./Hammer/binaries/hmmsearch --tblout $file.sigma.hits sigma.hmm $file | ||
| ./Hammer/binaries/hmmsearch --tblout $file.sporecoat.hits sporecoat.hmm $file | ||
| ./Hammer/binaries/hmmsearch --tblout $file.transporter.hits transporter.hmm $file | ||
| done | ||
|
|
||
| cat Problem1/*.hits | grep -v "#" | awk '{print $1,$3,$5}' | sed -E 's/tr\|[A-Z0-9]+\|[A-Z0-9]+_9//' > results.txt | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import numpy | ||
| import pandas | ||
|
|
||
| sequences=open("motifsort.fasta","r") | ||
| motif1file=open(motif1.txt,"w") | ||
| motif2file=open(motif2.txt,"w") | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. motif1file=open("motif1.txt","w") |
||
| others=open(nonMotif.txt,"w") | ||
|
|
||
| for line in sequences: | ||
| motif1= re.match(AKKPRVZE,str(sequences)) | ||
| motif2- re.match(AAQWWRNYGG,str(sequences)) | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. motif1= re.match("AKKPRVZE",str(line)) -0.1 pts |
||
|
|
||
| if motif1: | ||
| motif1file.write(line + '\n') | ||
| if motif2: | ||
| motif2file.write(line + '\n') | ||
| else: | ||
| others.write(line + '\n') | ||
|
|
||
| print motif1file | ||
| print motif2file | ||
| print others | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job