Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
seaconnect
annotationVariant
Commits
4cc29797
Commit
4cc29797
authored
Mar 05, 2021
by
peguerin
Browse files
fix nonsynonymous keep
parent
e6a7817e
Changes
1
Hide whitespace changes
Inline
Side-by-side
keep_synonymous.sh
→
keep_
non
synonymous.sh
View file @
4cc29797
anvage synonymous
--vcf
diplodus_CDS.vcf
\
--genome
genomes/diplodus_genome_lgt6000.fasta
\
--annotation
annotation/sar_annotation.gff3
\
--output_prefix
diplodus_CDS
vcftools
--positions
<
(
awk
'{print $1" "$2}'
diplodus_CDS_uniprot_blast_filtered.tsv |
sort
|
uniq
)
--vcf
diplodus_CDS_nonsynonymous.vcf
--recode
--out
diplodus_CDS_uniprot_nonsynonymous
grep
-v
"^#"
diplodus_CDS_uniprot_nonsynonymous.recode.vcf |
awk
'{ print $1"\t"$2}'
|
while
read
CHROMPOS
;
do
grep
"
$CHROMPOS
"
diplodus_CDS_uniprot_blastx.tsv
;
done
>
diplodus_CDS_uniprot_nonsynonymous.tsv
nonsynonymous_chrompos
()
{
#1 vcf input
...
...
@@ -24,4 +15,5 @@ grep -v "^#" $4"_uniprot_nonsynonymous.recode.vcf" | awk '{ print $1"\t"$2}' | w
}
nonsynonymous_chrompos
(
"mullus_CDS.vcf"
,
"genomes/mullus_genome_lgt6000.fasta"
,
"annotation/mullus_annotation.gff3"
,
"mullus_CDS"
,
"mullus_CDS_uniprot_blast_filtered.tsv"
)
\ No newline at end of file
nonsynonymous_chrompos diplodus_CDS.vcf genomes/diplodus_genome_lgt6000.fasta annotation/sar_annotation.gff3 diplodus_CDS diplodus_CDS_uniprot_blast_filtered.tsv
nonsynonymous_chrompos mullus_CDS.vcf genomes/mullus_genome_lgt6000.fasta annotation/mullus_annotation.gff3 mullus_CDS mullus_CDS_uniprot_blast_filtered.tsv
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment