thierrygosselin / radiator

RADseq Data Exploration, Manipulation and Visualization using R
https://thierrygosselin.github.io/radiator/
GNU General Public License v3.0
58 stars 23 forks source link

Error in genomic_converter while converting VCF to STRUCTURE format #190

Open Pigrenok opened 2 months ago

Pigrenok commented 2 months ago

I am trying to run genomic_converter from VCF file to STRUCTURE format, but get a strange error that the default parameter of a radiator_parameter` function is not acceptable.

Here is the full run (including testing VCF file with detect_genomic_format and strata file with read_strata.

> library(radiator)
> radiator::detect_genomic_format(data = "test.vcf")
[1] "vcf.file"
> strata = radiator::read_strata("strata_breed_3_far.tsv")
> res = genomic_converter(data = 'test.vcf', strata = "strata_breed_3_far.tsv", output = c("structure"))                                                                    
################################################################################
######################### radiator::genomic_converter ##########################
################################################################################
Execution date@time: 20240623@0240
Folder created: 08_radiator_genomic_converter_20240623@0240
Function call and arguments stored in: radiator_genomic_converter_args_20240623@0240.tsv
Filters parameters file generated: filters_parameters_20240623@0240.tsv
v Reading VCF [1s]                                                                                       
i Importing data: vcf.file
Cleaning VCF
LOCUS field empty... adding unique id instead
Filtering markers based on VCF FILTER column
Error in `radiator_parameters()`:
! parameter.obj = NULL not accepted
Run `rlang::last_trace()` to see where the error occurred.

Computation time, overall: 5 sec

Computation time, overall: 5 sec
######################### completed genomic_converter ##########################
x Importing data: vcf.file [5.3s]

Here is the test data that I use with here. test.tar.gz

Any ideas what can be done with it?

Thank you very much in advance.