Skip to content

Commit f72e107

Browse files
authored
[Microreact] Fix missing encode parameter (#44)
* pass missing logger to encode in create_tree_entry * adhere to new format * remove from previous version * more robust error handling
1 parent e89f9f6 commit f72e107

3 files changed

Lines changed: 632 additions & 0 deletions

File tree

microreact_export/1.0.1/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM python:3.13-slim
2+
3+
ARG PANDAS_VER="2.3.3"
4+
ARG REQUESTS_VER="2.32.5"
5+
6+
LABEL description="Docker container for Microreact export script"
7+
LABEL website="https://github.com/theiagen_docker_builds/microreact_export"
8+
LABEL license="https://github.com/theiagen_docker_builds/blob/main/LICENSE"
9+
LABEL maintainer="Andrew Hale"
10+
LABEL maintainer.email="andrew.hale@theiagen.com"
11+
LABEL dockerfile.version="1.0.1"
12+
13+
RUN apt-get update && apt-get install -y --no-install-recommends gcc\
14+
&& pip3 install --no-cache-dir \
15+
pandas==${PANDAS_VER} \
16+
requests==${REQUESTS_VER} \
17+
&& apt-get remove -y gcc \
18+
&& apt-get autoremove -y \
19+
&& apt-get clean \
20+
&& rm -rf /var/lib/apt/lists/*
21+
22+
WORKDIR /scripts
23+
24+
COPY microreact_export.py /scripts/microreact_export.py
25+
26+
ENTRYPOINT [ "python", "/scripts/microreact_export.py" ]

microreact_export/1.0.1/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Microreact_Export
2+
3+
`microreact_export.py` creates, updates, and submits Microreact project files in JSON format.
4+
5+
## Inputs
6+
7+
- project_name: Desired name for Microreact project
8+
- project_url: Project ID for current project, used in conjunction with `--update`
9+
- update: Allows for a currently present Microreact project to be updated with new metadata or tree files, used in conjunction with `--project_url`
10+
- metadata_tsv: Input table to be used as Microreact metadata, command line useage only
11+
- tree_files: List of tree files for upload
12+
- selected_columns: Columns to be included in Microreact metadata
13+
- access_token: Access token available on Microreact account page for API access
14+
- restricted_access: Creates a private Microreact project (default: false)
15+
- remove_file_columns: Removes columns associated with cloud filepaths (default: false)
16+
- id_column: Column set to be the unique identifier for Microreact
17+
- date_column: If available, the column name associated with sample dates for Microreact Timeline usage

0 commit comments

Comments
 (0)