ancestry_pipeline icon indicating copy to clipboard operation
ancestry_pipeline copied to clipboard

Shapeit2 Sample Input

Open boratonAJ opened this issue 6 years ago • 2 comments

I am setting up this pipeline to find local ancestry. I don't know why I am getting this error. Below is the error message.

Traceback (most recent call last): File "ancestry_pipeline/shapeit2rfmix.py", line 263, in main(args) File "ancestry_pipeline/shapeit2rfmix.py", line 131, in main sample_indices.append(find_indices(ref_set, open_shapeit(sample), out_sample)) File "ancestry_pipeline/shapeit2rfmix.py", line 46, in find_indices raise RuntimeError('Shapeit sample file appears to be incorrect') RuntimeError: Shapeit sample file appears to be incorrect

boratonAJ avatar May 17 '18 12:05 boratonAJ

I have been using this pipeline for a while and have encountered this problem before. According to the code, shapeit2rfmix.py expects the header to be

ID_1 ID_2 missing father mother sex plink_pheno

while the header of the .sample file given by shapeit2 is just

ID_1 ID_2 missing.

My workaround is to expand the .sample file to have more columns and fill in 0 wherever appropriate.

dwuab avatar May 23 '18 06:05 dwuab

Apologies, as @samuelandjw indicates, just adding additional rows with 0's is a decent workaround for this plink-style file.

On May 23, 2018, at 2:49 AM, samuelandjw [email protected] wrote:

I have been using this pipeline for a while and have encountered this problem before. According to the code, shapeit2rfmix.py expects the header to be

ID_1 ID_2 missing father mother sex plink_pheno

while the header of the .sample file given by shapeit2 is just

ID_1 ID_2 missing.

My workaround is to expand the .sample file to have more columns and fill in 0 wherever appropriate.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/armartin/ancestry_pipeline/issues/5#issuecomment-391239189, or mute the thread https://github.com/notifications/unsubscribe-auth/ACFHHKerrr2k0xHaSjRK250yYU0RzVgbks5t1QZlgaJpZM4UC9_F.

armartin avatar May 23 '18 15:05 armartin