Skip to content

Commit

Permalink
Merge pull request #157 from thackl/fix-156
Browse files Browse the repository at this point in the history
Fix empty attributes check in read_gff3
  • Loading branch information
thackl authored Oct 6, 2023
2 parents a34516f + a8bbcf9 commit 4327a26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: r-lib/actions/setup-r@v2
with:
r-version: 4.2.2
r-version: 4.3.1

- uses: r-lib/actions/setup-pandoc@v2

Expand Down
2 changes: 1 addition & 1 deletion R/read_gff3.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ tidy_attributes <- function(x, is_gff2=FALSE, keep_attr=FALSE, fix_augustus_cds=

d <- map_df(str_split(x[[9]], "; *"), function(r){
# handle missing comments
if(is.na(r) || str_length(r) == 0)
if(all(is.na(r) | str_length(r) == 0))
return(tibble(.rows=1)) # make sure this df has at least 1 row!

# ignore empty elements caused by trailing or duplicated ";"
Expand Down

0 comments on commit 4327a26

Please sign in to comment.