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
25ec3b3b
Commit
25ec3b3b
authored
4 months ago
by
Niko (Nikolaos) Papadopoulos
Browse files
Options
Downloads
Patches
Plain Diff
checks and balances for ENA submission
parent
26459b84
No related branches found
Branches containing commit
No related tags found
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
+37
-0
37 additions, 0 deletions
08-submission/gff-03-ENA_conform.sh
with
37 additions
and
0 deletions
08-submission/gff-03-ENA_conform.sh
0 → 100644
+
37
−
0
View file @
25ec3b3b
#!/usr/bin/env bash
# modify the sorted GFF3 file to conform to ENA requirements.
# this means:
# - remove duplicate features
# - remove short introns (<10nt)
module load conda
conda activate agat-1.4.1
# switch to the submission directory
RESULT
=
/lisc/scratch/zoology/pycnogonum/genome/submission
cd
$RESULT
||
exit
# define inputs and outputs
GFF
=
$BASE
/merged_sorted_named.gff3
DEDUP
=
$BASE
/merged_sorted_named_dedup.gff3
SHORT_INTRONS
=
$BASE
/short_introns.tsv
KILL_LIST
=
$BASE
/kill_list.tsv
FILTERED_GFF
=
$BASE
/merged_sorted_named_dedup_filtered.gff3
# the python script that will generate the kill list
KILLSCRIPT
=
/lisc/user/papadopoulos/repos/plit-genome/08-submission/gff-04-build_kill_list.py
# first remove duplicate features
agat_sp_fix_features_locations_duplicated.pl
--gff
"
$GFF
"
-o
"
$DEDUP
"
# now find short introns
agat_sp_list_short_introns.pl
--gff
"
$DEDUP
"
--size
10
--out
"
$SHORT_INTRONS
"
# this table contains the locus (chromosome), gene, start position, and length of
# map the short introns to mRNAs in the GFF3 file
python
$KILLSCRIPT
"
$SHORT_INTRONS
"
"
$DEDUP
"
>
"
$KILL_LIST
"
# use the kill list to filter the offending mRNAs out of the GFF3
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
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