From b3f03c0bbbbd4d0be90d0032bd50382d32eceac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilo=20Garc=C3=ADa?= Date: Mon, 19 Aug 2024 17:17:51 -0500 Subject: [PATCH] Add some info to README --- README.md | 12 ++++++++++++ docs/src/index.md | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/README.md b/README.md index 20364c9..a3f550c 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,18 @@ countatoms(lambdaprotein) 50 110 10 20 0 # V (Val) ``` +Sometimes what is needed is the total number of each atom in the sequence. This can be achieved by a simple sum of the matrix: + +```julia +counts = countatoms(lambdaprotein) + +sum(counts, dims=1) + +1×5 Matrix{Int64}: +# C H N O S + 895 1814 270 449 4 +``` + ## License MIT License diff --git a/docs/src/index.md b/docs/src/index.md index 50ed1e9..3cf5593 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -66,6 +66,18 @@ countatoms(lambdaprotein) 50 110 10 20 0 # V (Val) ``` +Sometimes what is needed is the total number of each atom in the sequence. This can be achieved by a simple sum of the matrix: + +```julia +counts = countatoms(lambdaprotein) + +sum(counts, dims=1) + +1×5 Matrix{Int64}: +# C H N O S + 895 1814 270 449 4 +``` + ## License MIT License \ No newline at end of file