Skip to content

Commit

Permalink
merge q2info
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Barrero Rodríguez committed Feb 19, 2024
1 parent ef3211b commit e3375ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 4_qTableReport/qReportMaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,11 @@ def qReportDesign(config, quan, qTableD, contrast):
for i,j in qTableD.columns
])

# Add info contained in q2info
if os.path.isfile(config['q2info']):
q2info = pd.read_csv(config['q2info'], sep='\t')
q2info.columns = pd.MultiIndex.from_tuples([qTableD.columns[0] if n==0 else (i,'','') for n,i in enumerate(q2info.columns)])
qTableD = pd.merge(q2info, qTableD, how='right', on=[qTableD.columns[0]])

plotted_q = [os.path.splitext(i)[0] for i in os.listdir(config['plotFolder'])]
qTableD[qTableD.columns[0]] = \
Expand Down
3 changes: 3 additions & 0 deletions 4_qTableReport/qReportMaker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ infile: D:\CNIC\Scripts\ReportStats\test\FDR_LIMMA_NM_qfq_table_pgmfreq.tsv
# Output file
outfolder: D:\CNIC\Scripts\ReportStats\test\

# Path to file relating protein Uniprot ID (first col) to other information (e.g. Category)
q2info: S:\U_Proteomica\UNIDAD\NextCloud\1_PTM_Analysis\Heteroplasmia_Heart\ReportStats-v0.6\myMitocarta.tsv

# FDR threshold used
qvThr:
- 0.01
Expand Down

0 comments on commit e3375ec

Please sign in to comment.