Check for new replies
Which code to make a subset?
#1
Can someone tell me the code to make a subset, as I only want certain samples and I can’t merge with the whole dataset 

Thanks
Reply
#2
--keep samples2keep.txt

Provide it a file with a list of sample IDs to retain.
Reply
#3
(09-20-2024, 01:35 PM)AimSmall Wrote: --keep samples2keep.txt

Provide it a file with a list of sample IDs to retain.

Can you provide me with the rest of the command as well thanks
Reply
#4
plink(version number) --bfile "dataset" --keep extractlist --make-bed --out "your sample"
Reply
#5
(09-20-2024, 02:02 PM)AimSmall Wrote: plink(version number) --bfile "dataset" --keep extractlist --make-bed --out "your sample"

Is their a way of doing it for eigenstrat format, because the dataset is in eigrnstrat. Wouldn’t they output it in a different format?
Reply
#6
I don't know. I don't deal in eigenstrat, I convert them as the tools I utilize prefer plink format.
Reply

Check for new replies

Forum Jump:


Users browsing this thread: 1 Guest(s)