bioinfo-chru-strasbourg / vcf2circos

python plotly Circos from VCF
GNU Affero General Public License v3.0
32 stars 8 forks source link

I got static error #19

Closed hayeon-pak closed 1 year ago

hayeon-pak commented 1 year ago

Hi :)

I tried to use vcf2circos. So, I made json file as follow.

{
    "General": {
        "title": "",
            "width": 1400,
        "height": 1400,
            "plot_bgcolor": "white"
    },
    "Static": "config/Static",
    "Assembly": "hg19",
    "Chromosomes": {
        "cytoband": "True",
        "list": ["chr1", "chr2", "chr3", "chr4", "chr5", "chr6", "chr7", "chr8", "chr9", "chr10", "chr11", "chr12", "chr13", "chr14", "chr15", "chr16", "chr17", "chr18", "chr19", "chr20", "chr21", "chr22", "chrX"]
    },
    "Variants": {
        "annotations": {
            "fields": ["SVTYPE", "SVLEN"]
        },
        "rings": {
            "position": 0.4,
            "height": 0.04,
            "space": 0.01,
            "nrings": 6
        }
    }
}

But, I got this error

Traceback (most recent call last): File "/dir/to/vcf2circos", line 33, in sys.exit(load_entry_point('vcf2circos', 'console_scripts', 'vcf2circos')()) File "/dir/to/vcf2circos/vcf2circos/main.py", line 133, in main js = Datafactory(input_file, options).plot_dict() File "/dir/to/vcf2circos/datafactory.py", line 31, in plot_dict pc = Plotconfig( File "/dir/to/vcf2circos/plotcategories/plotconfig.py", line 49, in init open(osj(self.options["Static"] + "/options.general.json"), "r",) FileNotFoundError: [Errno 2] No such file or directory: 'config/Static/options.general.json'

I found this file, but I couldn't find and did not have Static folder. Where can I find? or What can I add in this file?

Thank you!

JbaptisteLam commented 1 year ago

Sorry for replying late, I have forgotten to share the "Static files", the README has been update in the section "Configuration folder", Do not forget to set the path of this folder in the json config "Static", a default configuration is also available in the downloaded files called (options.json),

If you have any trouble or questions feel free to ask :)

Best,

Jean-Baptiste