Closed bpbentley closed 3 years ago
Not sure if it helps but I have a similar error message when using write_bayescan:
Error: Can't subset columns that don't exist. x Column
POP_IDdoesn't exist.
Runnign the following code:
radiator::write_bayescan(data = new.tidy, pop.select = NULL, filename = "test.baye", parallel.core = 1L)
While the POP_ID column is present in the data frame:
str(new.tidy)
tibble [54,600 x 14] (S3: tbl_df/tbl/data.frame)
$ POP_ID : Factor w/ 10 levels "Hauraki","Northland",..: 1 1 1 1 1 1 2 2 2 2 ...
$ INDIVIDUALS : chr [1:54600] "CA115001" "CA115001" "CA115002" "CA115003" ...
$ VARIANT_ID : int [1:54600] 1 1 1 1 1 1 1 1 1 1 ...
$ MARKERS : chr [1:54600] "134092053409205" "134092053409205" "134092053409205" "134092053409205" ...
$ CHROM : chr [1:54600] "1" "1" "1" "1" ...
$ LOCUS : chr [1:54600] "3409205" "3409205" "3409205" "3409205" ...
$ POS : chr [1:54600] "3409205" "3409205" "3409205" "3409205" ...
$ REF : chr [1:54600] "T" "T" "T" "T" ...
$ ALT : chr [1:54600] "C" "C" "C" "C" ...
$ GT_BIN : int [1:54600] 2 2 2 1 1 0 0 0 1 2 ...
$ ALLELE_REF_DEPTH: int [1:54600] NA NA NA 16 39 NA 8 5 NA NA ...
$ ALLELE_ALT_DEPTH: int [1:54600] 28 21 NA 26 NA NA NA 7 NA 15 ...
$ READ_DEPTH : int [1:54600] 28 21 NA 42 39 NA 8 12 NA 15 ...
$ GQ : int [1:54600] 83 63 NA 99 0 NA 24 99 NA 45 ...
Would be great if this issue can be resolved :) Cheers!
should be fixed with latest release
Hi Thierry,
I'm running into issues with Radiator when running filter_rad() using a VCF file generated through Stacks. Additionally, my colleagues (who are running Radiator on MAC-OS) also run into the same error. We're just trying to filter these pilot data to inform further sampling and sequencing, so the number of samples per strata is low in some instances.
Describe the bug When running filter_rad(): Radiator runs through the filtering steps fine. When it gets to the genomic converter step, it generates an error that "Column
GT
doesn't exist".To Reproduce This is the input that we are using for the filter_rad() step:
This is the full output that is generated:
With the rlang expanded error:
Devtools session info:
If it helps I can provide the VCF for replication. Thanks in advance for you help with this super useful package!
Kind regards, Blair