Yingying-Buynak Submission#5
Open
mbuynak wants to merge 27 commits into
Open
Conversation
Problem 2
lyy005
reviewed
Dec 11, 2017
| outfile1.close() | ||
| outfile2.close() | ||
| outfile3.close() | ||
| vcffile.close() No newline at end of file |
lyy005
reviewed
Dec 11, 2017
| cat transporter.hits | grep -v "#" | wc -l | ||
|
|
||
| ./hmmsearch --tblout sporecoat.hits sporecoat.hmm Verrucomicrobia.fasta | ||
| cat sporecoat.hits | grep -v "#" | wc -l |
Owner
There was a problem hiding this comment.
The goal of this exercise is to practice for loop. It would be good to use a loop in Linux command:
Also, make sure you only print out the proteome, e-value of the alignment
-0.1 pts
for file in *.fasta
do
outSigma=$file.Sigma.hits
outSpore=$file.Spore.hits
outTrans=$file.Trans.hits
hmmsearch --tblout $outSigma sigma.hmm $file
hmmsearch --tblout $outSpore sporecoat.hmm $file
hmmsearch --tblout $outTrans transporter.hmm $file
done
cat *.hits | grep -v "#" | awk '{print $1,$3,$5}' | sed -E 's/tr|[A-Z0-9]+|[A-Z0-9]+_9//g' > hmmOut.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.