A utility package that can be used to upload data to a curtain backend server.
Project description
CurtainUtils
A utility package for converting different MS output files into a format usable by Curtain (https://curtain.proteo.info) and CurtainPTM (https://curtainptm.proteo.info)
Installation
The package can be installed using the following command.
pip install curtainutils
Convert MSFragger PTM single site output to CurtainPTM input
Usage:
msf-curtainptm -f <MSFragger PTM single site output file> -i <index column with site information> -o <output file> -p <peptide column> -a <fasta file>
Submit data to a Curtain server
Usage example:
import curtainutils.common as common
de_file = r"differential-file-path"
raw_file = r"raw-file-path"
fc_col = "foldchange-column-name"
transform_fc = False
transform_significant = False
reverse_fc = False
p_col = "significance-column-name"
comp_col = "" # Leave empty if no comparison column is used
comp_select = [] # Leave empty if no comparison column is used
primary_id_de_col = "primary-id-column-name-in-differential-file"
primary_id_raw_col = "primary-id-column-name-in-raw-file"
sample_cols = ["4Hr-AGB1.01", "4Hr-AGB1.02", "4Hr-AGB1.03", "4Hr-AGB1.04", "4Hr-AGB1.05", "24Hr-AGB1.01", "24Hr-AGB1.02", "24Hr-AGB1.03", "24Hr-AGB1.04", "24Hr-AGB1.05", "4Hr-Cis.01", "4Hr-Cis.02", "4Hr-Cis.03", "24Hr-Cis.01", "24Hr-Cis.02", "24Hr-Cis.03"]
payload = common.create_curtain_session_payload(
de_file,
raw_file,
fc_col,
transform_fc,
transform_significant,
reverse_fc,
p_col,
comp_col,
comp_select,
primary_id_de_col,
primary_id_raw_col,
sample_cols
)
package = {
"enable": "True",
"description": payload["settings"]["description"],
"curtain_type": "TP",
}
result = common.post_curtain_session(package, payload, "back-end-url")
print(result)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
curtainutils-0.1.2.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file curtainutils-0.1.2.tar.gz
.
File metadata
- Download URL: curtainutils-0.1.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.11.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c11cd71bf0531d45a9d7959f74b4c57403c6c14cc79bfb423da92d7694b3cba9 |
|
MD5 | b1716a8cf8c50e9f4e9e634d429ee491 |
|
BLAKE2b-256 | 0fb3eea190dba0b3f099c565616be3d43ef90bbe61776fbd4b37fe09dec8703d |
File details
Details for the file curtainutils-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: curtainutils-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.0 CPython/3.11.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8004fa12e63dec73a6395c0985c64aadd5138a3fd869d3f409234f21e16fd342 |
|
MD5 | 25279a95c59d0add91ef49c6d312327a |
|
BLAKE2b-256 | eddde27ddd3f98415954d002dc574ea7d65c3d0c69b9cad1fb73bcaa6eb6e2f6 |