Skip to content

Size and cost of an analysis

explanationplan-analysis-size-and-cost

Know how much an analysis needs and how to calculate its bill.

This page gives the memory and the time that an analysis needs, and how to calculate the bill of the cloud from these numbers. For the stable part of the cost, how jobsjob — One run of a tool on data. The Backend starts jobs on the server where it runs, or in a Kubernetes cluster. Glossary get computing power and how to limit the cost, see Size and cost.

How much an analysis needs

The memory that an analysis needs depends mostly on how diverse the data is: how many different sequences a sample has. It does not depend much on the size of the raw data files. A large file with few different sequences needs little memory, while a very diverse sample needs much. As a rough guide, 32 GiB is enough for most samples, with up to about 1 million different sequences. Very diverse samples and projects, with 2 to 10 million, need 64 to 256 GiB for some jobs.

Typical data, for a first estimate:

  • Samples in a project: from several tens to several hundreds in an average project, and more than a thousand in a large project.
  • Reads in a sample: about 5,000 to 15,000 for a small check, 1 to 50 million for a typical sample, and 100 to 200 million in large studies.
  • Size of the raw data: usually 5 to 10 GiB for one sequencing dataset.

Most jobs run for each sample, and the samples run in parallel when there are resources for them. A few jobs run once for all samples at the end, and they grow with the number of samples.

Memory and time of MiXCR Clonotyping

This page uses MiXCR Clonotyping as the example because it is the main BlockBlock — A small application for one step of an analysis, for example the import of reads or clustering. It can combine several tools. Glossary of most analyses; other Blocks of an analysis add to the bill. The Block runs some jobs for each sample and some jobs once for all samples. The Block splits its work into separate jobs on purpose, so each job asks only for the memory and the CPUsCPUs — The compute units of a node or of the server, as Kubernetes and the operating system count them. A job asks for a number of CPUs. The cloud quotas call them vCPUs. Glossary that it needs. In a cluster, each job goes to a node that fits it; in Single Server modeSingle Server mode — The mode in which the Backend and all its jobs run on one Linux machine, the server, with no Kubernetes cluster. Glossary, each job takes only its own request. Different samples run in parallel when there are resources for them. The time is in node hours: one node of the largest batch group for one hour, for typical data.

Runs Memory CPUs Time
For each sample Each job asks for its own amount. Most jobs ask for up to 32 GiB. The biggest job of a diverse sample of 100 M reads asks for about 74 GiB. Very diverse samples need up to 256 GiB Up to 16 About 0.2 node hour for 10 M reads, about 2 node hours for 100 M reads
Once for all samples At least 64 GiB; more for a very large project 8; a very large project runs up to 26 such jobs at the same time Not in these estimates

In a cluster that the Terraform modulesTerraform modules — The Terraform code that MiLaboratories provides to install Platforma. The cloud-specific Terraform modules make the cluster and its cloud parts in AWS or Google Cloud; the cloud-agnostic Terraform modules install Platforma into the cluster. Glossary make, a request can ask for more CPUs or memory than one node of the largest batch group gives. Then the request is cut to what that node gives: with the defaults, 31 CPUs and about 234 GiB.

MiXCR Clonotyping also needs temporary disk space for each sample: about 12 GiB for 10 M reads, and at least 120 GiB for 100 M reads.

A very large project needs larger nodes at the end. The jobs of MiXCR Clonotyping for all samples grow with the number of samples and with how diverse they are, and each of these jobs must fit on one node. In a cluster, this is a node of the largest batch group (about 234 GiB). On a a server of 256 GiB in Single Server mode, a very large project can need more memory than the server gives to such a job. For such a project, use a cluster or a larger server.

Examples: 10 and 100 million reads per sample

Both examples use MiXCR Clonotyping, with the same inputs as the Memory examples of Single Server mode. The needs come from Memory and time of MiXCR Clonotyping:

10 M reads per sample × 10 samples 100 M reads per sample × 100 samples
For each sample Biggest job 32 GiB, 16 CPUs, about 12 GiB of temporary disk space, about 0.2 node hour Biggest job 74 GiB (up to 256 GiB for very diverse data), 16 CPUs, at least 120 GiB of temporary disk space, about 2 node hours
Once for all samples 64 GiB, 8 CPUs 64 GiB, 8 CPUs, or up to 26 such jobs at the same time when the samples are very diverse
Total for the samples, at most About 2 node hours About 200 node hours

A node keeps a part of its CPUs and memory for itself. So a node with 16 CPUs gives only about 15 CPUs to jobs, and a job that asks for 16 CPUs does not fit on it. With the default node groups, the jobs that ask for 16 CPUs therefore run on nodes of the largest batch group: 32 CPUs and 256 GiB. Of these, about 31 CPUs and 234 GiB are free for jobs on AWS (about 31 CPUs and 235 GiB on Google Cloud). Thus at most one such job runs on each node. The default maximum of this group is 8 nodes, so up to 8 such jobs run at the same time. The smaller jobs go to the nodes that fit them:

10 M reads per sample × 10 samples 100 M reads per sample × 100 samples
Jobs of 16 CPUs at the same time 8 8
Time with the default maximum of 8 nodes About 0.5 hour (2 rounds) About 26 hours (13 rounds)
Time with a maximum of 16 nodes About 0.2 hour About 14 hours

Different Blocks and different steps of a Block ask for different CPUs and memory, so in general the load spreads over the cluster and fills the free space on the nodes. A job of 16 CPUs does not take the whole node. On a node of 32 CPUs and 256 GiB, it leaves about 15 CPUs and much of the memory free, and smaller jobs run on the same node at the same time. Thus the node hours of these examples are an upper estimate: they count one job of 16 CPUs on each node, with nothing else on it.

To run more jobs at the same time, you can raise the maximum size of the largest group. With 16 nodes, the analysis ends about 2 times sooner and costs about the same, because the number of node hours does not change.

From resources to the bill

In a cloud, the bill of a month has four parts. The sums do not include the license of Platforma.

  • The fixed base, in the stable part: the price of each part that runs all the time, by the hour, times the hours of the month (about 730).
  • Storage, in the stable part: the data in the primary storageprimary storage — The bucket (Amazon S3 or Google Cloud Storage) or folder where Platforma keeps all results and uploaded files. Glossary and in the workspaceworkspace — The storage where the Backend and all jobs keep the working files of running jobs. The Backend and the jobs use it at the same time. In Kubernetes, it is a network file system; in Single Server mode, it is a folder on the server. Glossary, by the gigabyte and the month. You pay for it all the time, and it grows with the data.
  • The jobs, in the dynamic part: for each job node, the price of the node by the hour, times the hours that the node exists. These hours count from its start to its removal, also the minutes before the autoscaler removes an empty node. In Single Server mode, this part is in the fixed base.
  • Traffic, in the dynamic part: the downloads to the Desktop AppDesktop App — The program that each user installs on their own computer to work with Platforma. It is a client of the Backend. Glossary and the traffic through the NAT, by the gigabyte.

The cloud can also bill the logs, for example Cloud Logging on Google Cloud, but this cost is much lower than the cost of the computation.

The node hours of an analysis depend on the number of samples, on the time that each job runs, and on how many jobs share a node. The time depends on the data, so the best source is a test run on real data of the company.

A Block can run a job again with changed parameters when the first run ends badly. For example, the job runs out of memory or ends with an error, or the cluster does not have a GPU and the Block uses the CPU. Each Block does this in its own way, so you cannot know it in advance. The Backend limits the number of runs for each job, so a Block cannot run a job more times than this limit. Thus the final cost of an analysis can be a bit higher than the estimate from the node hours and the examples. On average, the difference is small: most jobs finish on the first run, and for them the estimate is close.

Example in US dollars

This example uses the default sizes of the modules and the on-demand list prices of 26 November 2026, in the regions us-east-1 (AWS) and us-central1 (Google Cloud), without discounts and taxes. The sums do not include the license of Platforma. Prices change and differ by region: check the price list of the cloud before you plan a budget. The sums are rounded.

The fixed base, for one month of 730 hours:

Part AWS, USD Google Cloud, USD
Control plane 73 0: the modules make a zonal cluster, and the free tier of GKE pays for one zonal cluster of each billing account (73 when another cluster already uses the free tier)
System nodes 147 (2 × m7i.large, 0.1008 an hour) 98 (e2-standard-4, 0.134 an hour)
Backend node 294 (m7i.2xlarge, 0.4032 an hour) 265 (n4-standard-8, 0.3628 an hour)
NAT and public IP addresses 44 About 6
Load balancer About 22 About 18
Volumes (about 280 GiB) 22 About 25 (Hyperdisk Balanced at 0.08 a GiB-month)
Workspace By the data in it: 0.30 a GB-month 256 (1 TiB at 0.25 a GiB-month)
Total, without data About 600 About 670 (about 740 without the free tier)

The Backend node is the largest part of the base. For more than 30 users at the same time, use a Backend node of 16 CPUs and 64 GiB: m7i.4xlarge at 0.8064 USD an hour, or n4-standard-16 at 0.7256 USD an hour. It adds about 295 USD a month on AWS and about 265 USD on Google Cloud. The storage adds to the stable part and grows with the data. On AWS, the primary storage costs 0.023 USD for each GB-month, and EFS costs 0.30 USD for each GB-month. EFS also costs 0.03 USD for each GB that jobs read from it and 0.06 USD for each GB that they write. A download to the Desktop App costs about 0.09 USD for each GB on AWS, after the first 100 GB of each month. The traffic through the NAT costs about 0.045 USD for each GB on AWS and for each GiB on Google Cloud.

The analyses of the examples. The cost grows with the number of samples and with the reads in each sample. The example with 100 M reads per sample has 10 times more samples and 10 times more reads in each sample. So it needs about 100 times more node hours. With the default node groups, the jobs of 16 CPUs run on nodes of the largest batch group, at most one such job on each node. These nodes are r7i.8xlarge at 2.1168 USD an hour on AWS and n4-highmem-32 at 1.9043 USD an hour on Google Cloud. For the node hours and the time of each example, see Examples. The sums count one job of 16 CPUs on each node with nothing else on it, so they are an upper estimate. When smaller jobs share the nodes, the cost for each sample is lower. Slow cases, for example very diverse data, take several times longer. Check the times with a test run on real data of your company.

10 M reads per sample × 10 samples 100 M reads per sample × 100 samples
Node hours, at most 10 samples × 0.2 hour = 2 100 samples × 2 hours = 200
AWS At most about 5 USD At most about 450 USD
Google Cloud At most about 5 USD At most about 400 USD
Cost for each sample At most about 0.5 USD At most about 4 USD (Google Cloud) to 4.5 USD (AWS)

A maximum of 16 nodes instead of 8 makes the analysis end sooner for the same cost. The sums include a small margin for the minutes before the autoscaler removes the empty nodes, and for the smaller jobs of each sample. They do not include the jobs once for all samples at the end, which for a very large project can run as up to 26 jobs at the same time.

For comparison, take Single Server mode on a cloud server of the same size as the largest batch node (32 CPUs and 256 GiB). The server alone costs about 1,550 USD a month on AWS (2.1168 × 730) and about 1,390 USD on Google Cloud, used or not.

Next