scgpt/pad_tokenize

Description

Tokenize and pad a batch of data for scGPT integration zero-shot inference or fine-tuning.

Type

python_script

License

MIT

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
modality: [ "rna" ]  
var_input: [ "id_in_vocab" ]  
input_obsm_binned_counts: [ "binned_counts" ]  
output: "$id.$key.output.h5mu"  
obsm_gene_tokens: [ "gene_id_tokens" ]  
obsm_tokenized_values: [ "values_tokenized" ]  
obsm_padding_mask: [ "padding_mask" ]  
pad_token: [ "<pad>" ]  
pad_value: [ -2 ]  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \  
  -revision 2.1.2 \  
  -main-script target/nextflow/scgpt/pad_tokenize/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--input
file
required
--modality
string
--model_vocab
file
required
--var_gene_names
string
--var_input
string
--input_obsm_binned_counts
string

Outputs

Name
Type & Properties
--output
file
required
output
--output_compression
string
--obsm_gene_tokens
string
--obsm_tokenized_values
string
--obsm_padding_mask
string

Arguments

Name
Type & Properties
--pad_token
string
--pad_value
integer
--max_seq_len
integer

Collaborate Accelerate Succeed

Empower your organization with secure, scalable workflow solutions that simplify development, ensure compliance, and drive innovation.

Viash Hub is a platform developed by Data Intuitive, a Belgian-based bioinformatics company specializing in data workflow development and deployment.