| 1 |
Mismatch Detection (RefSeq Proteins with 3 Residue Differences from RefSeq Genome) |
| 2 |
|
| 3 |
esearch -db gene -query "DMD [GENE] AND human [ORGN]" | |
| 4 |
efetch -format docsum | |
| 5 |
xtract -pattern DocumentSummary -block GenomicInfoType \ |
| 6 |
-tab "\n" -element ChrAccVer,ChrStart,ChrStop | |
| 7 |
xargs -n 3 sh -c 'efetch -db nuccore -format gbc \ |
| 8 |
-id "$0" -chr_start "$1" -chr_stop "$2"' > dystrophin.xml |
| 9 |
|
| 10 |
cat dystrophin.xml | |
| 11 |
xtract -insd CDS gene product translation sub_sequence > dystrophin.txt |
| 12 |
|
| 13 |
cat dystrophin.txt | |
| 14 |
while IFS=$'\t' read acc gene prod prot seq |
| 15 |
do |
| 16 |
trans=$( echo "$seq" | transmute -cds2prot ) |
| 17 |
if [ "$prot" != "$trans" ] |
| 18 |
then |
| 19 |
echo ">$acc $gene $prod" |
| 20 |
transmute -diff <( echo "$prot" ) <( echo "$trans" ) |
| 21 |
echo "" |
| 22 |
fi |
| 23 |
done > failures.txt |