Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #383 #402

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bin/agat_convert_sp_gff2bed.pl
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@
$field12_blockStarts = undef;

if($test_nc eq "." and $opt_nc eq "filter"){
continue; # skip this non-coding feature
# skip this non-coding feature
} else {
# print bed line
print $bedout $line;
}
# print bed line
print $bedout $line;

}
}
}
Expand Down
12 changes: 10 additions & 2 deletions docs/tools/agat_convert_sp_gff2bed.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

The script aims to convert GTF/GXF file into bed file.
It will convert level2 features from gff (mRNA, transcripts) into bed features.
If the selected level2 subfeatures (defaut: exon) exist, they will be reported
in the block fields (9-12th colum in bed).
If the selected level2 subfeatures (defaut: exon) exist, they are reported
in the block fields (9-12th colum in bed). CDS Start and End are reported in column
7 and 8 accordingly.

Definintion of the bed format:
```
Expand Down Expand Up @@ -37,6 +38,13 @@ agat_convert_sp_gff2bed.pl --help

Input GFF3 file that will be read

- **--nc**

STRING - behaviour for non-coding features (e.g. recored wihtout CDS). [keep,filter,transcript]
keep - Default, they are kept but no CDS position is reported in the 7th and 8th columns (a period is reported instead).
filter - We remove them.
transcript - We keep them but values in 7th and 8th columns will contains transcript's start and stop.

- **--sub**

Define the subfeature (level3, e.g exon,cds,utr,etc...) to report as blocks in the bed output.
Expand Down
Loading