DReichLab / DReichLab/AdmixTools
Convertf error "fatalx: no valid samples!"
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 235
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I've used convertf many times without issues, but am now running into a problem where it doesn't consider my samples valid. I am trying to convert bed/bim/fam files to geno/snp/ind files retaining a subset of individuals with the following par.file:
echo par.file.eig
genotypename: subset.bed
snpname: subset.bim
indivname: subset.fam
outputformat: EIGENSTRAT
genotypeoutname: subset_fst.geno
snpoutname: subset_fst.snp
indivoutname: subset_fst.ind
poplistname: subset_individuals.txt
I've also attempted running it with different outputformats, e.g. PACKEDANCESTRYMAP or without a specified outputformat line.
Using the following command:
~/eigensoft/EIG-7.2.1/bin/convertf -p ./par.file.eig > ./out_convert.log
Generates the following log:
fatalx:
no valid samples!
Aborted (core dumped)
What might explain the software to consider my samples invalid? Here's a head of my .fam file:
Akha Akha25 0 0 2 1
Akha Akha26 0 0 1 1
Ami Ami1 0 0 1 1
Ami Ami2 0 0 1 1
and here's a head of my .bim file:
1 1_1158277 0.013 1158277 A G
1 1_1776269 0 1776269 A C
1 1_1852484 0 1852484 G A
1 1_1930754 0.021 1930754 T C
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the command with par.file.eig, subset.bed, subset.bim, subset.fam, and subset_individuals.txt, then inspect how convertf treats the sample identifiers and population list. Compare the listed .fam records with the population-list input and output-format settings; done means identifying the condition that produces “no valid samples” and documenting a working configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- bioinformatics, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100