<p>Correct command is</p>
<pre><code>plink2 --vcf sample_vcf_file.vcf --recode transpose --out outputfile
</code></pre>
<p>vcftools also can convert vcf into tped/tfam</p>

CC BY-SA 4.0
2021-08-29T21:07:10.737Z
Yep, from [plink manual](https://www.cog-genomics.org/plink/1.9/index): `--transpose Deprecated. Use "--recode transpose".`.
Kamil S Jaron
CC BY-SA 4.0
2021-08-29T15:24:11.880Z
2021-08-29T15:24:11.880Z
Hood
<p>When converting vcf to tbed/tfam format, I am getting error like</p>
<pre><code>unrecognized flag&lt;'--transpose'&gt;
</code></pre>
<p>Code I used:</p>
<pre><code>plink2 --vcf sample_vcf_file.vcf --recode --transpose --out outputfile
</code></pre>

<plink>
How to convert vcf to tbed/tfam and again convert it back to tbed/tfam to vcf using plink
# How to convert vcf to tbed/tfam and again convert it back to tbed/tfam to vcf using plink

(Asked by: username_0 on 2021-08-27)

When converting vcf to tbed/tfam format, I am getting error like
unrecognized flag<'--transpose'>

Code I used:
plink2 --vcf sample_vcf_file.vcf --recode --transpose --out outputfile

**Tags:** plink

---

## 1 answers

### Answer by username_1 on 2021-08-29. Score: 1

Correct command is
plink2 --vcf sample_vcf_file.vcf --recode transpose --out outputfile

vcftools also can convert vcf into tped/tfam

> **Comments:**
> **username_2**: Yep, from [plink manual](https://www.cog-genomics.org/plink/1.9/index): `--transpose Deprecated. Use "--recode transpose".`.  

---

