read_tsv seems to produce warnings because it is converting some columns to logical:
goa <- readr::read_tsv(gaf_file, comment = "!", col_name=gaf.colnames, col_types = cols(
DB = col_character(),
DB_Object_ID = col_character(),
DB_Object_Symbol = col_character(),
Qualifier = col_character(),
GO_ID = col_character(),
DB_Reference = col_character(),
Evidence_Code = col_character(),
With_From = col_character(),
Aspect = col_character(),
DB_Object_Name = col_character(),
DB_Object_Synonym = col_character(),
DB_Object_Type = col_character(),
Taxon = col_character(),
Date = col_character(),
Assigned_By = col_character(),
Annotation_Extension = col_character(),
Gene_Product_Form_ID = col_character()
))
read_tsv seems to produce warnings because it is converting some columns to logical:
flavin/R/read_gaf.R
Line 42 in 1aaaf97
This might be a better way: