Closed HenrikBengtsson closed 9 years ago
Done in branch feature/readPgf-header-coercion (commit 632f16c):
data <- readPgf("DroGene-1_0-st.pgf", indices=176276);
Error in readPgfEnv(file, readBody = TRUE, indices = indices) :
Argument 'indices' is out of range [1,176275]
Here indices
is validated immediately after reading the PGF file header, because the file header contains the field probesets
. If not, then the same validation is only done after parsing the whole file.
Some, not all, PGF files has header field
header$probesets
which specifies the number of probesets. If this field is available and a valid integer (cf. Issue #4), then we should validate that elements ofindices
are not out of range relative to this field. Otherwise, we should validate after having read all requested probesets and give a warning if fewer probesets were read/available than requested.