Commit 92372b20 authored by Li's avatar Li Committed by Haowen Zhang
Browse files

Update README. Code refactoring.

parent d26c0d4c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -168,6 +168,11 @@ Note that chrom_end is open-end. This output fragment file can be used as input
downstream analysis tools such as [MAESTRO][MAESTRO], [ArchR][ArchR], [signac][signac]
and etc.

For the output, Chromap provide the function to translate input cell barcode to another barcode space. 
User can specify the translation file through the option **--barcode-translate**. 
The translation file is a two-column tsv/csv file with the original barcode on the second column and the translated barcode on the first column. This is useful for the case of 10x multiome data, where scATAC-seq and scRNA-seq data uses different sets of barcodes. 
This option also supports combinatorial barcoding, such as SHARE-seq. Chromap translates each barcode segment provided in the second column to the ID of the first column and added "-" to concatenate the IDs in the output.

#### <a name="map-hic"></a>Map Hi-C short reads

```sh
+4 −0
Original line number Diff line number Diff line
#ifndef BARCODETRANSLATOR_H_
#define BARCODETRANSLATOR_H_

#include <cinttypes>
#include <cstring>
#include <functional>
@@ -109,3 +112,4 @@ public:
  }
};
}
#endif
+0 −2
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
#include <cinttypes>
#include <cstring>
#include <functional>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
@@ -17,7 +16,6 @@
#include "pairs_mapping.h"
#include "sam_mapping.h"
#include "sequence_batch.h"
#include "khash.h"
#include "barcode_translator.h"

namespace chromap {