Skip to content

Commit

Permalink
Add some info to README
Browse files Browse the repository at this point in the history
  • Loading branch information
camilogarciabotero committed Aug 19, 2024
1 parent d4de73e commit b3f03c0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b3f03c0

Please sign in to comment.