Entering edit mode
7.5 years ago
stijn.vandenbrande
▴
40
Hi,
Is it possible that the output file of miranda only displays hits, without also displaying all those where no hits were found?
Someone already solve this problem by just extracting the info of the hits executing
grep -A 1 "Scores for this hit:" rad.txt | sort | grep >
You can see the original thread here :)
Thanks! How should I command this in terminal? If i run miranda: file1 file2 and then add "grep -A 1 "Scores for this hit:" rad.txt | sort | grep >", it gives an error?
So miRanda works like this:
miranda file1 file2 -o file3
So after the results are saved on file3, you can write
grep -A 1 "Scores for this hit:" file3 | sort | grep '>'
. If you just want the hits and not have an intermediate file, just typemiranda file1 file2 | grep -A 1 "Scores for this hit:" file3 | sort | grep '>'