Skip to content

Commit

Permalink
fix #383 (#402)
Browse files Browse the repository at this point in the history
* sync doc

* fix #383 Can't continue outside a when block

---------

Co-authored-by: Jacques Dainat <[email protected]>
  • Loading branch information
Juke34 and Juke34 authored Oct 13, 2023
1 parent 32df8c8 commit 87f1ddd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
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

0 comments on commit 87f1ddd

Please sign in to comment.