gl.filter.callrate error if monomorphs == FALSE?

734 views
Skip to first unread message

Caroline Chong

unread,
Sep 8, 2020, 10:02:30 PM9/8/20
to dartR
Hi All,

Thanks for version 1.8.3 and also the added capability for silicoDArT data - extremely timely!

I have a question about running gl.filter.callrate using v. 1.8.3. on a SNP data set that does not contain monomorphs.
Using previous versions of dartR I can successfully run, for example,

gl7 <- gl.filter.callrate(glx, threshold = 0.95, v=5)

but in v. 1.8.3 I now get returned the error on the same input data glx:

Starting gl.filter.callrate [ Build = Jacob ]

  Processing a SNP dataset

Error in if (x@other$loc.metrics.flags$monomorphs == FALSE) { :

  argument is of length zero

- Would you have any suggestions on what might be the issue? The genlight object "glx" already does not contain any monomorphs:

gl.report.monomorphs(glx)

Starting gl.report.monomorphs

  Processing a SNP dataset

  Identifying monomorphic loci

 No. of loci: 51329

    Polymorphic loci: 51329

    Monomorphic loci: 0

    Loci scored all NA: 0

  No. of individuals: 509

  No. of populations: 11

Completed: gl.report.monomorphs

NULL

Thanks for your suggestions,

Best regards, Caroline.

Threatened Species Botanist, Northern Territory Government, Darwin.

Arthur Georges

unread,
Sep 8, 2020, 10:07:00 PM9/8/20
to da...@googlegroups.com
Hi Caroline,

can you run

glx <- gl.compatability.check(glx)

and try again.

A
> --
> You received this message because you are subscribed to the Google Groups "dartR" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/dartr/edf727ee-41e6-4442-80b6-28e30d8da92cn%40googlegroups.com.



--
---------------------------------------------------------------------------------------------------------------------------
D-Prof. Arthur Georges
Institute for Applied Ecology, University of Canberra ACT 2601 Australia
Deliveries: Bld 3 Stores, Kirinari Street, Bruce ACT 2617
Tel : +61 (0)2 6201 5786 Fax: +61 (0)2 6201 5305 Mobile: +61 (0)418 866741
WWW: http://georges.biomatix.org ORCID ID:
http://orcid.org/0000-0003-2428-0361
Map: https://www.canberra.edu.au/maps

Caroline Chong

unread,
Sep 8, 2020, 11:42:04 PM9/8/20
to dartR
Hi Arthur,

Brilliant, thanks. I ran gl.compliance.check (not gl.compatability.check), got returned the following, and then successfully ran gl.filter.callrate.

Thanks for your help! Are you able to hazard what the problem was - would this have been the locus metrics needing recalculation?

Best regards, Caroline.

glx <- gl.compliance.check(glx)

Starting gl.compliance.check

  Processing a SNP dataset

  Checking coding of SNPs

    SNP data scored NA, 0, 1 or 2 confirmed

  Checking locus metrics and flags

  Recalculating locus metrics

  Checking for monomorphic loci

    No monomorphic loci detected

  Checking for individual metrics

    Individual metrics confirmed

  Checking for population assignments

  Population assignments confirmed

Spelling of coordinates checked and changed if necessary

Completed: gl.compliance.check


Arthur Georges

unread,
Sep 8, 2020, 11:45:02 PM9/8/20
to da...@googlegroups.com
gl objects created under previous versions of dartR need to be updated for use in version 1,8,3. 

A

Reply all
Reply to author
Forward
0 new messages