I have a MacBookAir and I want to draw a two-dimensional representation of a protein's secondary structure with cpssp in LaTeX. I have installed cpssp and MacTeX. I also created my ~/Library/texmf/tex/latex/cpssp. Next I have run the Python script which I called from my terminal like
python cpssp.py -s seq.fasta -u ss.fasta -w 14 -i 1.5 -t 20 -o test
I get the test.tex file but I don't know how to use LaTeX to convert those coordinates into the actual image.
I have read how to create a basic LaTeX and it works but when I try with the package cpssp it does not work.
Can someone help me please. Any tip, advice or something will be appreciated.
TeX file:
\cpsspLabel{-0.0}{pf_0111000}
\cpsspStartRes{-0.0}{1.5}{1}
\cpsspBend{-0.0}{1.5}{2.0}
\cpsspPiHelix{-0.0}{2.0}{2.25}
\cpsspSheet{-0.0}{2.25}{2.5}
\cpsspCoil{-0.0}{2.5}{3.75}
\cpsspSheet{-0.0}{3.75}{5.5}
\cpsspCoil{-0.0}{5.5}{6.75}
\cpsspAlphaHelix{-0.0}{6.75}{7.75}
\cpsspCoil{-0.0}{7.75}{8.75}
\cpsspSheet{-0.0}{8.75}{10.25}
\cpsspCoil{-0.0}{10.25}{10.75}
\cpsspSheet{-0.0}{10.75}{12.25}
\cpsspCoil{-0.0}{12.25}{14.0}
\cpsspEndRes{-0.0}{14.0}{50}
\cpsspLabel{-1.5}{pf_0111000}
\cpsspStartRes{-1.5}{1.5}{51}
\cpsspAlphaHelix{-1.5}{1.5}{2.75}
\cpsspCoil{-1.5}{2.75}{4.25}
\cpsspSheet{-1.5}{4.25}{5.0}
\cpsspCoil{-1.5}{5.0}{5.5}
\cpsspSheet{-1.5}{5.5}{6.0}
\cpsspCoil{-1.5}{6.0}{7.5}
\cpsspAlphaHelix{-1.5}{7.5}{11.75}
\cpsspCoil{-1.5}{11.75}{12.75}
\cpsspSheetT{-1.5}{12.75}{14.0}
\cpsspEndRes{-1.5}{14.0}{100}
\cpsspLabel{-3.0}{pf_0111000}
\cpsspStartRes{-3.0}{1.5}{101}
\cpsspSheet{-3.0}{1.5}{1.75}
\cpsspCoil{-3.0}{1.75}{3.75}
\cpsspSheet{-3.0}{3.75}{4.5}
\cpsspCoil{-3.0}{4.5}{6.5}
\cpsspAlphaHelix{-3.0}{6.5}{10.25}
\cpsspCoil{-3.0}{10.25}{11.5}
\cpsspSheetT{-3.0}{11.5}{14.0}
\cpsspEndRes{-3.0}{14.0}{150}
\cpsspLabel{-4.5}{pf_0111000}
\cpsspStartRes{-4.5}{1.5}{151}
\cpsspSheet{-4.5}{1.5}{2.0}
\cpsspCoil{-4.5}{2.0}{5.75}
\cpsspSheet{-4.5}{5.75}{6.75}
\cpsspCoil{-4.5}{6.75}{8.0}
\cpsspSheet{-4.5}{8.0}{8.75}
\cpsspCoil{-4.5}{8.75}{9.75}
\cpsspSheet{-4.5}{9.75}{10.5}
\cpsspCoil{-4.5}{10.5}{11.25}
\cpsspAlphaHelix{-4.5}{11.25}{14.0}
\cpsspEndRes{-4.5}{14.0}{200}
\cpsspLabel{-6.0}{pf_0111000}
\cpsspStartRes{-6.0}{1.5}{201}
\cpsspAlphaHelix{-6.0}{1.5}{1.75}
\cpsspCoil{-6.0}{1.75}{6.0}
\cpsspSheet{-6.0}{6.0}{9.0}
\cpsspCoil{-6.0}{9.0}{10.5}
\cpsspSheet{-6.0}{10.5}{13.5}
\cpsspCoil{-6.0}{13.5}{14.0}
\cpsspEndRes{-6.0}{14.0}{250}
\cpsspLabel{-7.5}{pf_0111000}
\cpsspStartRes{-7.5}{1.5}{251}
\cpsspCoil{-7.5}{1.5}{6.0}
\cpsspEndRes{-7.5}{6.0}{268}