Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plit-genome
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zoology
plit-genome
Commits
b96bfe8e
Commit
b96bfe8e
authored
4 months ago
by
Niko (Nikolaos) Papadopoulos
Browse files
Options
Downloads
Patches
Plain Diff
fall back to pseudo= tag instead of editing the GFF
parent
4c3735a2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
08-submission/gff-03-ENA_conform.sh
+27
-16
27 additions, 16 deletions
08-submission/gff-03-ENA_conform.sh
with
27 additions
and
16 deletions
08-submission/gff-03-ENA_conform.sh
+
27
−
16
View file @
b96bfe8e
...
@@ -15,28 +15,39 @@ cd $RESULT || exit
...
@@ -15,28 +15,39 @@ cd $RESULT || exit
# define inputs and outputs
# define inputs and outputs
GFF
=
./merged_sorted_named.gff3
GFF
=
./merged_sorted_named.gff3
DEDUP
=
./merged_sorted_named_dedup.gff3
DEDUP
=
./merged_sorted_named_dedup.gff3
SHORT_INTRONS
=
./short_introns.tsv
FLAGGED
=
./merged_sorted_named_dedup_flagged.gff3
KILL_LIST
=
./kill_list.tsv
# SHORT_INTRONS=./short_introns.tsv
# KILL_LIST=./kill_list.tsv
FILTERED_GFF
=
./merged_sorted_named_dedup_filtered.gff3
# FILTERED_GFF=./merged_sorted_named_dedup_filtered.gff3
FILTERED_mRNA
=
./short_introns.gff3
# FILTERED_mRNA=./short_introns.gff3
# FILTERED_mRNA_SORTED=./short_introns_sorted.gff3
# the python script that will generate the kill list
# the python script that will generate the kill list
KILLSCRIPT
=
/lisc/user/papadopoulos/repos/plit-genome/08-submission/gff-03-build_kill_list.py
#
KILLSCRIPT=/lisc/user/papadopoulos/repos/plit-genome/08-submission/gff-03-build_kill_list.py
# first remove duplicate features
# first remove duplicate features
agat_sp_fix_features_locations_duplicated.pl
--gff
"
$GFF
"
-o
"
$DEDUP
"
agat_sp_fix_features_locations_duplicated.pl
--gff
$GFF
-o
$DEDUP
# now find short introns
# flag short introns, according to https://www.biostars.org/p/374618/
agat_sp_list_short_introns.pl
--gff
"
$DEDUP
"
--size
10
--out
"
$SHORT_INTRONS
"
# The NCBI documentation suggests to use the pseudo=True tag for genes that are broken in some way
# but still thought to be real genes (not pseudogenes): https://www.ncbi.nlm.nih.gov/genbank/genomes_gff/
agat_sp_flag_short_introns.pl
--gff
$DEDUP
--out
$FLAGGED
# this table contains the locus (chromosome), gene, start position, and length of
# # now find short introns
# map the short introns to mRNAs in the GFF3 file
# agat_sp_list_short_introns.pl --gff $DEDUP --size 10 --out $SHORT_INTRONS
# this was written in Python 3.12 but Python >3 should be fine; we only use default libraries
python
$KILLSCRIPT
"
$SHORT_INTRONS
"
"
$DEDUP
"
>
"
$KILL_LIST
"
# use the kill list to filter the offending mRNAs out of the GFF3
# # this table contains the locus (chromosome), gene, start position, and length of
agat_sp_filter_feature_from_kill_list.pl
--gff
"
$DEDUP
"
--kill_list
"
$KILL_LIST
"
-p
mRNA
-o
"
$FILTERED_GFF
"
# # map the short introns to mRNAs in the GFF3 file
# # this was written in Python 3.12 but Python >3 should be fine; we only use default libraries
# python $KILLSCRIPT $SHORT_INTRONS $DEDUP > $KILL_LIST
# also make a supplementary GFF with only the short introns:
# # use the kill list to filter the offending mRNAs out of the GFF3
agat_sp_filter_feature_from_keep_list.pl
--gff
"
$DEDUP
"
--keep_list
"
$KILL_LIST
"
-p
mRNA
-o
"
$FILTERED_mRNA
"
# agat_sp_filter_feature_from_kill_list.pl --gff $DEDUP --kill_list $KILL_LIST -p mRNA -o $FILTERED_GFF
\ No newline at end of file
# # also make a supplementary GFF with only the short introns:
# agat_sp_filter_feature_from_keep_list.pl --gff $DEDUP --keep_list $KILL_LIST -p mRNA -o $FILTERED_mRNA
# # and sort it properly:
# module load genometools/
# gt gff3 -tidy -retainids -o $FILTERED_mRNA_SORTED -force $FILTERED_mRNA
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment