Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/knowledge-work-plugins
/ functions
Functions
178 in github.com/anthropics/knowledge-work-plugins
⨍
Functions
178
◇
Types & classes
7
↓ 21 callers
Method
add_warning
(self, msg: str)
bio-research/skills/instrument-data-to-allotrope/scripts/validate_asm.py:365
↓ 18 callers
Function
get_field
(name, default='')
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:662
↓ 17 callers
Method
add_info
(self, msg: str)
bio-research/skills/instrument-data-to-allotrope/scripts/validate_asm.py:368
↓ 14 callers
Function
_rate_limit_ncbi
Enforce NCBI rate limit of 3 requests/second.
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:30
↓ 11 callers
Method
add_error
(self, msg: str)
bio-research/skills/instrument-data-to-allotrope/scripts/validate_asm.py:362
↓ 9 callers
Method
add_error
Add an error (makes validation fail).
bio-research/skills/scvi-tools/scripts/validate_adata.py:31
↓ 8 callers
Method
add_warning
Add a warning (doesn't fail validation).
bio-research/skills/scvi-tools/scripts/validate_adata.py:36
↓ 6 callers
Function
format_file_size
Format file size in human-readable format.
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:475
↓ 5 callers
Method
add_recommendation
Add a recommendation for improvement.
bio-research/skills/scvi-tools/scripts/validate_adata.py:40
↓ 5 callers
Function
detect_technique
Detect technique from ASM structure.
bio-research/skills/instrument-data-to-allotrope/scripts/validate_asm.py:430
↓ 5 callers
Function
fetch_sra_run_info
Fetch SRA run information for all samples in a GEO study. Args: geo_id: GEO accession (e.g., 'GSE110004') bioproject: Option
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:197
↓ 4 callers
Function
extract_sample_info
Extract sample metadata from filepath. Args: filepath: Path to sequencing file Returns: Dict with: sample, patient, lan
bio-research/skills/nextflow-development/scripts/utils/sample_inference.py:78
↓ 3 callers
Function
count_measurements
Count measurement documents in ASM.
bio-research/skills/instrument-data-to-allotrope/scripts/validate_asm.py:509
↓ 3 callers
Function
detect_outliers_mad
Detect outliers using Median Absolute Deviation (MAD). Parameters ---------- adata : AnnData Annotated data matrix with QC m
bio-research/skills/single-cell-rna-qc/scripts/qc_core.py:64
↓ 3 callers
Function
fetch_sra_run_info_detailed
Fetch detailed SRA run information using efetch CSV format. This provides richer metadata than esummary, including sample names. Args:
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:565
↓ 3 callers
Function
flatten_asm
Flatten ASM JSON to list of row dictionaries. Each measurement becomes one row with metadata repeated.
bio-research/skills/instrument-data-to-allotrope/scripts/flatten_asm.py:86
↓ 3 callers
Function
format_sample_groups_table
Format sample groups as a readable table.
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:789
↓ 3 callers
Function
get_cache_dir
Get genome cache directory.
bio-research/skills/nextflow-development/scripts/manage_genomes.py:198
↓ 3 callers
Function
get_genome_path
Get local path to genome if installed.
bio-research/skills/nextflow-development/scripts/manage_genomes.py:232
↓ 3 callers
Function
get_pandas
()
bio-research/skills/instrument-data-to-allotrope/scripts/convert_to_asm.py:33
↓ 3 callers
Function
group_samples_by_type
Group SRA runs by library type and layout. Returns dict with group names as keys and info dicts as values: { 'RNA-Seq:PAIRED': {
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:708
↓ 3 callers
Function
is_genome_installed
Check if genome is installed locally.
bio-research/skills/nextflow-development/scripts/manage_genomes.py:222
↓ 3 callers
Method
is_valid
(self)
bio-research/skills/instrument-data-to-allotrope/scripts/validate_asm.py:371
↓ 3 callers
Function
resolve_genome_id
Resolve genome ID from name or alias.
bio-research/skills/nextflow-development/scripts/manage_genomes.py:207
↓ 2 callers
Function
_get_pattern_score
Get highest matching pattern score.
bio-research/skills/nextflow-development/scripts/utils/sample_inference.py:176
↓ 2 callers
Function
_get_sample_key
Generate a key for grouping related files.
bio-research/skills/nextflow-development/scripts/utils/sample_inference.py:185
↓ 2 callers
Function
discover_files
Recursively discover files of specified type. Args: directory: Root directory to search file_type: One of 'fastq', 'bam', 'c
bio-research/skills/nextflow-development/scripts/utils/file_discovery.py:42
↓ 2 callers
Function
download_file
Download a file with progress indication. Args: url: URL to download output_path: Path to save file timeout: Downloa
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:353
↓ 2 callers
Function
fetch_bioproject_from_geo
Fetch BioProject accession linked to a GEO study. Args: geo_id: GEO accession (e.g., 'GSE110004') Returns: BioProject a
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:502
↓ 2 callers
Function
fetch_geo_metadata
Fetch GEO study metadata using NCBI Entrez E-utilities. Args: geo_id: GEO accession (e.g., 'GSE110004') Returns: Dict w
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:87
↓ 2 callers
Function
flatten_asm_to_csv
Flatten ASM and write to CSV file. Args: asm: Parsed ASM JSON dictionary output_path: Path for output CSV
bio-research/skills/instrument-data-to-allotrope/scripts/flatten_asm.py:138
↓ 2 callers
Function
get_mito_genes
Identify mitochondrial genes for both human and mouse data. Handles common prefixes: - Human: MT- (e.g., MT-CO1, MT-ND1) - Mouse: mt
bio-research/skills/scvi-tools/scripts/model_utils.py:15
↓ 2 callers
Function
load_all_pipeline_configs
Load all pipeline configurations.
bio-research/skills/nextflow-development/scripts/detect_data_type.py:23
↓ 2 callers
Function
load_pipeline_config
Load pipeline configuration from YAML.
bio-research/skills/nextflow-development/scripts/generate_samplesheet.py:39
↓ 2 callers
Function
print_qc_summary
Print summary statistics for QC metrics. Parameters ---------- adata : AnnData Annotated data matrix with QC metrics lab
bio-research/skills/single-cell-rna-qc/scripts/qc_core.py:205
↓ 2 callers
Function
scan_directory
Scan directory and collect file information.
bio-research/skills/nextflow-development/scripts/detect_data_type.py:37
↓ 2 callers
Function
suggest_genome
Suggest a genome based on organism name.
bio-research/skills/nextflow-development/scripts/sra_geo_fetch.py:98
↓ 2 callers
Function
suggest_pipeline
Suggest nf-core pipeline based on library strategy.
bio-research/skills/nextflow-development/scripts/sra_geo_fetch.py:134
↓ 2 callers
Function
validate_asm
Validate ASM JSON file. Args: filepath: Path to ASM JSON file reference_path: Optional path to reference ASM for comparison
bio-research/skills/instrument-data-to-allotrope/scripts/validate_asm.py:1013
↓ 2 callers
Function
validate_samplesheet
Validate samplesheet rows against pipeline requirements. Args: rows: List of row dictionaries pipeline: Pipeline name (e.g.,
bio-research/skills/nextflow-development/scripts/utils/validators.py:57
↓ 1 callers
Function
_format_gsm_range
Format list of GSM IDs as a range if consecutive.
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:766
↓ 1 callers
Function
_parse_csv_line
Parse a CSV line handling quoted fields.
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:698
↓ 1 callers
Function
_print_preview
Print preview of generated samplesheet.
bio-research/skills/nextflow-development/scripts/generate_samplesheet.py:337
↓ 1 callers
Function
_process_alignment_files
Process BAM/CRAM files into samplesheet rows.
bio-research/skills/nextflow-development/scripts/generate_samplesheet.py:207
↓ 1 callers
Function
_process_atacseq_samples
Process ATAC-seq samples: ensure replicate numbers.
bio-research/skills/nextflow-development/scripts/generate_samplesheet.py:283
↓ 1 callers
Function
_process_fastq_files
Process FASTQ files into samplesheet rows.
bio-research/skills/nextflow-development/scripts/generate_samplesheet.py:163
↓ 1 callers
Function
_process_sarek_samples
Process sarek samples: infer and confirm tumor/normal status.
bio-research/skills/nextflow-development/scripts/generate_samplesheet.py:242
↓ 1 callers
Function
_validate_atacseq_specific
ATAC-seq specific validation for replicates.
bio-research/skills/nextflow-development/scripts/utils/validators.py:208
↓ 1 callers
Function
_validate_sarek_specific
Sarek-specific validation for tumor/normal pairing.
bio-research/skills/nextflow-development/scripts/utils/validators.py:167
↓ 1 callers
Function
_write_samplesheet
Write samplesheet to CSV file.
bio-research/skills/nextflow-development/scripts/generate_samplesheet.py:313
↓ 1 callers
Function
add_provenance_metadata
Add provenance metadata to ASM for reproducibility and audit trail. This metadata enables: - Reproducing conversions months later -
bio-research/skills/instrument-data-to-allotrope/scripts/convert_to_asm.py:228
↓ 1 callers
Function
apply_hard_threshold
Apply a hard threshold filter. Parameters ---------- adata : AnnData Annotated data matrix metric : str Column n
bio-research/skills/single-cell-rna-qc/scripts/qc_core.py:104
↓ 1 callers
Function
build_flexible_asm
Build ASM-like JSON structure from parsed DataFrame.
bio-research/skills/instrument-data-to-allotrope/scripts/convert_to_asm.py:302
↓ 1 callers
Function
calculate_file_hash
Calculate SHA256 hash of file for provenance tracking.
bio-research/skills/instrument-data-to-allotrope/scripts/convert_to_asm.py:211
↓ 1 callers
Function
calculate_pipeline_scores
Calculate confidence scores for each pipeline.
bio-research/skills/nextflow-development/scripts/detect_data_type.py:80
↓ 1 callers
Function
calculate_qc_metrics
Calculate QC metrics for single-cell RNA-seq data. Parameters ---------- adata : AnnData Annotated data matrix mt_patter
bio-research/skills/single-cell-rna-qc/scripts/qc_core.py:16
↓ 1 callers
Function
check_docker
Check Docker availability, daemon status, and permissions.
bio-research/skills/nextflow-development/scripts/check_environment.py:47
↓ 1 callers
Function
check_java
Check Java version (requires >= 11).
bio-research/skills/nextflow-development/scripts/check_environment.py:180
↓ 1 callers
Function
check_network
Check network connectivity to Docker Hub and nf-core.
bio-research/skills/nextflow-development/scripts/check_environment.py:309
↓ 1 callers
Function
check_network_access
Check if NCBI/ENA servers are accessible. Returns: Tuple of (success, message)
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:49
↓ 1 callers
Function
check_nextflow
Check Nextflow installation and version (requires >= 23.04).
bio-research/skills/nextflow-development/scripts/check_environment.py:113
↓ 1 callers
Function
check_resources
Check system resources (CPU, memory, disk).
bio-research/skills/nextflow-development/scripts/check_environment.py:238
↓ 1 callers
Function
cluster_and_embed
Cluster and compute UMAP embedding. Parameters ---------- adata : AnnData Data with latent representation in obsm use_re
bio-research/skills/scvi-tools/scripts/cluster_embed.py:18
↓ 1 callers
Function
compare_to_reference
Compare generated ASM to reference ASM.
bio-research/skills/instrument-data-to-allotrope/scripts/validate_asm.py:933
↓ 1 callers
Function
convert_with_allotropy
Convert file using allotropy library. Returns: ASM dictionary or None if conversion fails
bio-research/skills/instrument-data-to-allotrope/scripts/convert_to_asm.py:167
↓ 1 callers
Function
count_files_by_type
Count files by type in directory. Args: directory: Directory to scan Returns: Dict mapping file_type to count
bio-research/skills/nextflow-development/scripts/utils/file_discovery.py:111
↓ 1 callers
Function
detect_input_type
Auto-detect predominant input file type in directory. Prioritizes: FASTQ > BAM > CRAM Args: directory: Directory to scan R
bio-research/skills/nextflow-development/scripts/utils/file_discovery.py:170
↓ 1 callers
Function
detect_instrument_type
Auto-detect instrument type from file contents. Returns: Tuple of (vendor_name, confidence_score) confidence_score is 0-100
bio-research/skills/instrument-data-to-allotrope/scripts/convert_to_asm.py:101
↓ 1 callers
Function
detect_pipeline
Detect the most appropriate pipeline for the data. Args: directory: Path to data directory Returns: Tuple of (recommend
bio-research/skills/nextflow-development/scripts/detect_data_type.py:175
↓ 1 callers
Function
detect_technique
Detect the ASM technique type from document structure.
bio-research/skills/instrument-data-to-allotrope/scripts/flatten_asm.py:27
↓ 1 callers
Function
download_genome
Download genome reference files from iGenomes. Args: genome_id: Genome identifier (e.g., GRCh38) components: Specific compon
bio-research/skills/nextflow-development/scripts/manage_genomes.py:263
↓ 1 callers
Function
estimate_download_size
Estimate total download size from SRA run info. Args: runs: List of run info dicts with 'bases' field Returns: Estimate
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:487
↓ 1 callers
Function
extract_device_info
Extract device/instrument information from ASM.
bio-research/skills/instrument-data-to-allotrope/scripts/flatten_asm.py:70
↓ 1 callers
Function
extract_replicate_number
Extract replicate number from sample name. Args: sample_name: Sample identifier Returns: Replicate number if found, Non
bio-research/skills/nextflow-development/scripts/utils/sample_inference.py:156
↓ 1 callers
Function
fetch_ena_fastq_urls
Get FASTQ download URLs from ENA for an SRA study. ENA provides faster downloads than SRA with pre-split paired files. Args: st
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:298
↓ 1 callers
Function
fetch_sra_study_accession
Get the SRA study accession (SRPxxxxxx) for a GEO accession. Args: geo_id: GEO accession (e.g., 'GSE110004') Returns: S
bio-research/skills/nextflow-development/scripts/utils/ncbi_utils.py:144
↓ 1 callers
Function
filter_cells
Filter cells based on a boolean mask. Parameters ---------- adata : AnnData Annotated data matrix mask : np.ndarray or p
bio-research/skills/single-cell-rna-qc/scripts/qc_core.py:146
↓ 1 callers
Function
filter_genes
Filter genes based on detection thresholds. Parameters ---------- adata : AnnData Annotated data matrix min_cells : int
bio-research/skills/single-cell-rna-qc/scripts/qc_core.py:172
↓ 1 callers
Function
find_flattened_fields_in_measurements
Recursively find fields that appear directly on measurement documents.
bio-research/skills/instrument-data-to-allotrope/scripts/validate_asm.py:745
↓ 1 callers
Function
find_index_file
Find index file for a BAM or CRAM file. Args: alignment_file: Path to BAM or CRAM file Returns: Path to index file if f
bio-research/skills/nextflow-development/scripts/utils/file_discovery.py:131
↓ 1 callers
Function
flatten_asm_to_dict
Flatten ASM and return as dictionary with rows and columns. Useful for non-CSV outputs or further processing.
bio-research/skills/instrument-data-to-allotrope/scripts/flatten_asm.py:184
↓ 1 callers
Function
flatten_value
Flatten a single ASM value, handling value datum patterns. Returns dict of {column_name: value}
bio-research/skills/instrument-data-to-allotrope/scripts/flatten_asm.py:35
↓ 1 callers
Function
flexible_parse
Flexible fallback parser when allotropy fails. Creates ASM-like structure from parsed data. **WARNING:** This parser creates simplified
bio-research/skills/instrument-data-to-allotrope/scripts/convert_to_asm.py:263
↓ 1 callers
Function
generate_notebook
Generate Jupyter notebook for given vendor.
bio-research/skills/instrument-data-to-allotrope/scripts/export_parser.py:418
↓ 1 callers
Function
generate_samplesheet
Generate samplesheet for specified pipeline. Args: input_dir: Directory containing sequencing files pipeline: Pipeline name
bio-research/skills/nextflow-development/scripts/generate_samplesheet.py:52
↓ 1 callers
Function
generate_script
Generate standalone Python script for given vendor.
bio-research/skills/instrument-data-to-allotrope/scripts/export_parser.py:394
↓ 1 callers
Function
get_allotropy
()
bio-research/skills/instrument-data-to-allotrope/scripts/convert_to_asm.py:23
↓ 1 callers
Function
get_deterministic_timestamp
Get deterministic timestamp for file. Uses file modification time for reproducibility. Returns: ISO format timestamp string
bio-research/skills/instrument-data-to-allotrope/scripts/convert_to_asm.py:195
↓ 1 callers
Function
get_library_version
Get version of installed library.
bio-research/skills/instrument-data-to-allotrope/scripts/convert_to_asm.py:220
↓ 1 callers
Function
get_nextflow_params
Get Nextflow parameters for a genome. Returns dict with --fasta, --gtf if local, or just --genome if using iGenomes key.
bio-research/skills/nextflow-development/scripts/manage_genomes.py:363
↓ 1 callers
Function
infer_tumor_normal_status
Infer tumor (1) or normal (0) status from sample name. Args: sample_name: Sample identifier Returns: 1 for tumor, 0 for
bio-research/skills/nextflow-development/scripts/utils/sample_inference.py:131
↓ 1 callers
Function
integrate_datasets
Integrate multiple datasets. Parameters ---------- adatas : list of AnnData Datasets to integrate batch_names : list of
bio-research/skills/scvi-tools/scripts/integrate_datasets.py:17
↓ 1 callers
Function
interactive_select_group
Interactively select a sample group.
bio-research/skills/nextflow-development/scripts/sra_geo_fetch.py:357
↓ 1 callers
Function
list_genomes
List available genomes.
bio-research/skills/nextflow-development/scripts/manage_genomes.py:239
↓ 1 callers
Function
load_genome_mapping
Load organism to genome mapping from config.
bio-research/skills/nextflow-development/scripts/sra_geo_fetch.py:73
↓ 1 callers
Function
load_pipeline_config
Load pipeline configuration from YAML file.
bio-research/skills/nextflow-development/scripts/utils/validators.py:44
↓ 1 callers
Function
main
()
data/skills/data-context-extractor/scripts/package_data_skill.py:108
↓ 1 callers
Function
main
()
bio-research/skills/nextflow-development/scripts/manage_genomes.py:418
↓ 1 callers
Function
main
()
bio-research/skills/nextflow-development/scripts/sra_geo_fetch.py:663
↓ 1 callers
Function
main
()
bio-research/skills/nextflow-development/scripts/generate_samplesheet.py:373
next →
1–100 of 178, ranked by callers