How phac-nml/irida-next works
IRIDA Next is a Rails bioinformatics platform for managing genomic samples, metadata, attachments, and workflow analysis. Users enter through the web UI or GraphQL API; controllers and GraphQL operations handle domain actions, with services and jobs supporting transfers, exports, and workflow execution. Workflow definitions are registered from configuration and mirrored pipeline repositories, then exposed through GraphQL and execution interfaces. The README also identifies storage, analysis, and metadata management as core capabilities. Edges cite only relationships visible in the supplied excerpts or README; many unsampled controller and persistence links are therefore omitted.
Main entry points: 20230727133120_create_active_storage_tables.active_storage.rb Application database · pipelines.rb Pipeline registry · routes.rb Rails web routes · samples_controller.rb Sample operations
Components 21
User interfaces
- Rails web routes
config/routes.rb - GraphQL API
app/graphql/irida_schema.rb - Browser UI components
app/components
Sample management
- Sample operations
app/controllers/projects/samples_controller.rb - Sample services
app/services/base_sample_service.rb - Attachment handling
app/services/attachments/create_service.rb - Metadata management
app/controllers/concerns/metadata.rb - Data exports
app/services/data_exports/create_service.rb - Advanced search
app/models/advanced_search_query_form.rb - Activity history
app/controllers/activities_controller.rb
Workflow analysis
- Pipeline registry
lib/irida/pipelines.rb - Pipeline definition
lib/irida/pipeline.rb - Pipeline repository mirror
lib/irida/pipeline_repository.rb - Pipeline initialization
config/initializers/pipelines.rb - Pipeline query resolver
app/graphql/resolvers/pipeline_resolver.rb - Workflow creation
app/services/workflow_executions/create_service.rb - Workflow execution jobs
app/jobs/workflow_executions/workflow_execution_job.rb
Platform services
- Application database
db/migrate/20230727133120_create_active_storage_tables.active_storage.rb - Authentication
app/controllers/sessions_controller.rb
Other components
- Platform user
- GA4GH WES service
Connections 21
- Platform user → Rails web routes: uses
- Platform user → GraphQL API: queries
- Rails web routes → Sample operations: routes requests
config/routes.rb - Rails web routes → Workflow creation: routes workflow requests
config/routes.rb - Browser UI components → Rails web routes: submits actions
- GraphQL API → Pipeline query resolver: resolves pipelines
app/graphql/resolvers/pipeline_resolver.rb - Pipeline query resolver → Pipeline registry: finds pipeline
app/graphql/resolvers/pipeline_resolver.rb - Pipeline registry → Pipeline definition: builds definitions
lib/irida/pipelines.rb - Pipeline registry → Pipeline repository mirror: mirrors repository
lib/irida/pipelines.rb - Pipeline initialization → Pipeline registry: initializes registry
config/initializers/pipelines.rb - Workflow creation → Pipeline registry: looks up workflow
- Workflow creation → Workflow execution jobs: submits execution
- Workflow execution jobs → GA4GH WES service: executes workflow
- Sample operations → Sample services: delegates sample work
- Sample operations → Application database: persists samples
- Attachment handling → Application database: stores attachment records
- Metadata management → Application database: stores metadata
- Data exports → Application database: reads export data
- Advanced search → Application database: queries records
- Activity history → Application database: reads activity records
- Authentication → Application database: checks user account