Skip to content

Commit

Permalink
Remove gtf header (#13)
Browse files Browse the repository at this point in the history
* fix: do not write header for gtf file

* fix: write bed files without header

* update dockerfile

* update dev env

---------

Co-authored-by: CJ Herrmann <[email protected]>
  • Loading branch information
balajtimate and ninsch3000 authored Oct 18, 2023
1 parent 188e429 commit b8d858b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ LABEL maintainer="Máté Balajti <[email protected]>"
# COPY THE YAML & INSTALL SOFTWARE WITH CONDA
WORKDIR /usr/src/app
COPY ./ ./
RUN conda env create --file environment.yml
RUN conda env create --file environment.yml \
&& conda clean --all

# VARIABLES
ARG WORKDIR="/home/USER"
Expand Down
8 changes: 8 additions & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ channels:
- conda-forge
- bioconda
dependencies:
- pip>=20.2.3
- biopython>=1.78
- polars==0.16.17
- gtfparse
- numpy>=1.23.3
- pandas>=1.4.4
- python>=3.6, <=3.10
- pyarrow
- black
- coverage
- flake8
Expand Down
2 changes: 1 addition & 1 deletion scRNAsim_toolz/sequence_extractor/pre_bedtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ def pre_bedtools_mode(args):
args.output_bed_file = "default_output.bed"

pd.concat([gtf_df_pos, gtf_df_neg]).to_csv(
args.output_bed_file, sep="\t", index=False
args.output_bed_file, sep="\t", index=False, header=False
) # gtf_df_pos and gtf_df_neg must be dataframes

0 comments on commit b8d858b

Please sign in to comment.