Skip to main content

HelixPC

A series of scripts for gene database automation. Developed for the Philippe Campeau Laboratory.

example scatter graph

Installation

helixPC is available on PyPI, and is easily installable through pip.

For stability, it is recommended that you install this package in a virtual environment, but you may skip this step if you do not know how to set these up.

$ pip install helixpc

That’s it! You may now call the script with:

$ helixpc

Usage

Generating a file for the graphing utility

$ helixpc group <group_input> [--nonan] [--round=[int]]

If you do not yet have a valid input file for graph generation, the command group can help you generate one automatically. Simply stick all your batches in a single csv file, call the utility and a file named output.csv will be generated. You can then feed to the graphing utility.

Please note that:

  • If certain genes are included multiple times, their mean will be calculated, and only a single entry will appear in the output.

  • You may pass [--nonan] or [-n] to omit any gene that are missing entries in a batch.

  • You may round each values by passing an integer to [--round] or [-r]. The integer passed is equivalent to the number of decimal places. For example, passing -r=2 will round all values to the nearest hundredth.

  • You may pass the name of the output file with [--output]. If not used, the output file name will default to output.csv

input file format:

  • Check the example group_input.csv

  • The first row should specify the column titles.

  • You must call the columns containing gene names gene_symbol, they are used as columns of reference by the scripts.

Using the graphing utility

$ helixpc graph <graph_input> [--heat] [--scatter] [--alpha] [--pvalues] <control> <sample> [<sample> ...]

Once you have a csv file that you want to use for generating graph, you may feed it to the graphing utility. You must give the csv file a series of arguments for it to function properly:

-s | --scatter

Specifies that you want scatter graph(s). Scatter graphs are generated with a control (always the same) in the x axis, and a sample in the y axis. Giving more than one sample will return to you multiple graphs, one for each sample. You can hover over each point to see the name of the gene it is representing.

-he | --heat

Specifies that you want a heat graph. It will graph both control and samples. It accepts --no-log to prevent taking log_2() of all values. All other passed functions are ignored (for now).

heat graph example

<control>

Specifies the control. You may give the index or the name of a column. You may also give a series of indexes/column-names separated by a comma, and the values used will be the mean of each row for the series of columns given.

<sample>

Specifies the sample. You may give the index or the name of a column. You may also give a series of indexes/column-names separated by a comma, and the values used will be the mean of each row for the series of columns given. You may specify many samples, simply put a space in between each.

-a | --alpha

Specifies the alpha value. If used, you must also specify a column that will serve as the colour value for each gene. See --pvalues.

-p | --pvalues

Once you have specified an alpha, you must specify column(s) whose value for each gene will be compared to the alpha value. Everything below (including) the alpha value will be colored red. Everything strictly above the alpha will be colored black.

e.g. : helixpc graph output.csv -s -p=X9760.raw -a=5000 2,3 4

scatter graph with alpha and pvalues

-l | --label

Specifies the column to be used for making labels. The ten lowest and ten highest values will be labelled on the graph.

e.g. : helixpc graph output.csv -s -l=X9760.raw X9753 X9763

scatter graph with labelled points with the max/min values

-nl | --no-legend

By default, a legend is provided on the right hand side. Since this is not very useful for standard, unicolour graphs, you may turn this off by passing –no-legend.

-nlg | --no-log

By default, the x and y coordinates will use the log_2 of the values given. This tends to give clearer graphs, as it reduces their tendency to elongate in a very thin shape, whilst still representing an accurate distribution. You can turn this off by simply passing –no-log.

-nd | --no-diagonal

By default, a diagonal x=x line will be drawn on the graph. You may turn this off by passing –no-diagonal.

input file format:

  • Check the example graph_input.csv The first row should specify the column titles.

  • The first col should contain gene_symbol

Metadata

Release files for helixpc 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for helixpc 1.2.1
File Size Uploaded Provenance Actions
helixpc-1.2.1.tar.gz 9.3 kB Without provenance Details for helixpc-1.2.1.tar.gz

Release files / helixpc-1.2.1.tar.gz

Download URL helixpc-1.2.1.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d2c6604ac71982ce0d114da1fc5e7c5d251597cfc86e62bb1be03127e06207ad
BLAKE2b-256 checksum
How to use checksums
2318d21f660c4455f1819d845ee336737d925af8319d7d5afdf049ec89f0378b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for helixpc 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page