Skip to content
Snippets Groups Projects
Commit 24b310de authored by Mate Balajti's avatar Mate Balajti
Browse files

remove files

parent 30ca7f20
No related branches found
No related tags found
1 merge request!48refactor: setup.py, CI
FROM python:3.9-slim-buster
WORKDIR /usr/src/app
COPY README.md pyproject.toml ./
ADD tsg ./tsg
ADD data ./data
RUN pip install .
ENTRYPOINT [ "transcript-generator" ]
\ No newline at end of file
#!/usr/bin/env nextflow
nextflow.enable.dsl=2
```c
/*
* Define the input parameters"""Takes input from csv-formatted file ("ID,Count")
with counts for individual transcripts.
Also a gtf-formatted file with exon coordinates
of the transcripts included in the csv file.
Outputs gtf-formatted file containing
generated intron/exon structures per transcript.
Outputs csv-formatted file
("NewTranscriptID,ID,Count") with id of
generated transcript, id of original
transcript (without intron inclusions) and
Counts.
*/
params.cvs_file = "$projectDir/tests/ #Input cvs file from group 1
params.gtf_file = "$projectDir/tests/ #Input gtf file from group 1
params.outdir = "results"
/* Log some information for the user */
log.info """\
R N A S E Q - N F P I P E L I N E
===================================
cvs_file : ${params.cvs_file}
gtf_file : ${params.gtf_file}
outdir : ${params.outdir}
"""
.stripIndent()
/*
* define the `file_validation` process
* given that the input files exist and are the correct format
*/
process file_validation {
input:
path cvs_file
path gtf_file
output:
path cvs_file into struc_gen
path gtf_file into struc_gen
script:
"""
"""
}
/*
* Define the transcript structure generation
* Read gtf files to define exons/introns and add random mutation coefficient.
*/
process struc_gen {
input:
output:
script:
"""
"""
}
/* Start the job:
* initialize variables
*/
Channel
.fromFilePairs( params.reads, checkIfExists:true )
.set { read_pairs_ch }
/* The "main" function:
* Use CLI arguments to create structure sequences and output text file & gtf file with selected exon structures
*/
workflow {
file_validation_ch = file_validation(params.cvs_file, params.gtf_file)
struc_gen_ch = struc_gen( # No idea yet) }
/* Book keeping upon workflow completion */
workflow.onComplete {
log.info (workflow.success ? "\nDone! Open the following report in your browser --> $params.outdir/multiqc/multiqc_report.html\n" : "Oops .. something went wrong")
)
}
```
name: transcript-structure-generator
channels:
- defaults
- conda-forge
dependencies:
- python=3.9
- matplotlib
- pandas
- pip
- tqdm
- flake8-docstrings
- mypy
- flake8
- pytest
- pylint
- coverage
[project]
name = "tsg"
version = "0.2.0"
authors = [
{ name="Michael Zimmermann", email="michael.zimmermann@unibas.ch" },
{ name="Andri Fraenkl", email="andri.fraenkl@unibas.ch" },
{ name="Larissa Glass", email="larissa.glass@unibas.ch" },
]
description = "Transcript Structure Generator"
readme = "README.md"
requires-python = ">=3.7"
license = {text = "MIT"}
dependencies = [
"pandas",
"tqdm",
]
[tool.setuptools]
packages = ["tsg"]
[project.urls]
"Homepage" = "https://git.scicore.unibas.ch/zavolan_group/tools/transcript-structure-generator"
[project.scripts]
transcript-generator = "tsg.cli:app"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment