fsingletonthorn / EffectSizeScraping

MIT License
1 stars 0 forks source link

Errors when scraping validation set #59

Closed fsingletonthorn closed 4 years ago

fsingletonthorn commented 4 years ago

The following bugs out:

scrapePMC(call = "https://www.ncbi.nlm.nih.gov/pmc/oai/oai.cgi?verb=GetRecord&identifier=oai:pubmedcentral.nih.gov:1215486&metadataPrefix=pmc",  ftp = "ftp://ftp.ncbi.nlm.nih.gov/pub/pmc/oa_package/7d/65/PMC1215486.tar.gz", statcheck = T)

Error in stringr::str_split(cleanedTestStat, "(?<!n|N|df|DF|df2)(=|:)", : subscript out of bounds

fsingletonthorn commented 4 years ago

Error in the extraction function means that non-F tests can in rare circumstances be extracted which breaks things up the line

fsingletonthorn commented 4 years ago

Narrowed down to F statistic picking up issues with:

extractTestStats("sion of PlxnB3 in cultivated primary cerebellar neurons isolated from six days old c57BL/6J mice (a-f; 400 × magnification) but not in astrocytes (g-i) or oligodendrocytes (j-1) (630 × magnification). The c")
fsingletonthorn commented 4 years ago

Fixed by 35ad0f5f4786e5fa6fde3faa0269e82ee390b3ce